使用git将一个文件恢复到一个特定的commit?

git checkout <commit> <file>

 

参考:

http://stackoverflow.com/questions/215718/reset-or-revert-a-specific-file-to-a-specific-revision-using-git

https://www.kernel.org/pub/software/scm/git/docs/git-checkout.html

posted @ 2015-12-30 14:03  sycamore tree  阅读(3784)  评论(0编辑  收藏  举报