git 恢复单个文件 Posted on 2011-07-26 In git 如果你只是要恢复一个文件(修复未提交文件中的错误),如”hello.rb”, 你就要使用 git checkout $ git checkout -- hello.rb