git在当前分支下,回滚文件到任何commit

#git log 
根据git log信息显示,选择要回退到哪个commit
#git reset commit-id filename
#git checkout filename

你可能感兴趣的:(linux运维)