Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常我会在处理合并冲突时删除一个文件(通过 Finder)。当我去结束我的合并时,我尝试git rm my_file.txt并得到一个错误,即fatal: unable to stat 'my_file.txt': No such file or directory.
git rm my_file.txt
fatal: unable to stat 'my_file.txt': No such file or directory
我是否必须去 CLI 并且总是这样做git rm my_file.txt,或者是否有一个 git 技巧可以标记我刚刚删除的文件应该被删除?
删除 finder 中的文件后,只需git add . 在该文件夹上执行,git 会将文件标记为已删除
git add .