如果你只是要恢复一个文件(修复未提交文件中的错误),如”hello.rb”, 你就要使用 git checkout
$ git checkout -- hello.rb
http://www.gagahappy.com/git-checkout-file/
如果你只是要恢复一个文件(修复未提交文件中的错误),如”hello.rb”, 你就要使用 git checkout
$ git checkout -- hello.rb
http://www.gagahappy.com/git-checkout-file/