相关疑难解决方法(0)

暂存已删除的文件

假设我的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)

git git-add git-stage git-rm

454
推荐指数
10
解决办法
23万
查看次数

标签 统计

git ×1

git-add ×1

git-rm ×1

git-stage ×1