git status
时,Git向我展示了这一点
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: spec/game_spec.rb
当我尝试$ git rm spec/game_spec.rb
时,我收到此错误:fatal: pathspec 'spec/game_spec.rb' did not match any files
。
当我尝试$ git checkout spec/game_spec.rb
时,我收到此错误:error: pathspec 'spec/game_spec.rb' did not match any file(s) known to git.
发生了什么事?
答案 0 :(得分:-1)
之前你rm spec/game_spec.rb
。
如果您想要取回它,请使用git checkout -- spec/game_spec.rb
(请注意,您不能跳过 - )
答案 1 :(得分:-2)
尝试使用下一个:
schtasks /create /xml