Removing multiple files from a Git repo that have already been deleted from disk
本问题已经有最佳答案,请猛点这里访问。
Possible Duplicate:
Removing multiple files from a Git repo that have already been deleted from disk
号
如果我从磁盘中删除一些文件,它们会像在git repo中那样被删除:
1 2 3 4 5 6 7 8 | C:\git\bc>git status # On branch tracking2 # Changed but not updated: # (use"git add/rm <file>..." to update what will be committed) # (use"git checkout -- <file>..." to discard changes in working directory) # # deleted: test.txt # |
是否有一种方法可以执行单个命令"只从存储库中删除这些文件"?类似于
我使用Visual Studio和Windows资源管理器来处理我的源代码树,在某个时候我只删除了一大堆文件。然后我发现调用
我只需要一个命令,从git中删除所有也从磁盘中删除的文件。