假设我的git repostiory中有一个文件叫做foo.
假设它已被删除rm(不是git rm).然后git状态将显示:
Changes not staged for commit:
deleted: foo
Run Code Online (Sandbox Code Playgroud)
如何暂存此单个文件?
如果我尝试:
git add foo
Run Code Online (Sandbox Code Playgroud)
它说:
'foo' did not match any files.
Run Code Online (Sandbox Code Playgroud)