문제

Often I'll delete a file (via Finder) while dealing with merge conflicts. When I go to conclude my merge, I try git rm my_file.txt and I get an error that fatal: unable to stat 'my_file.txt': No such file or directory.

Do I have to go to the CLI and always do git rm my_file.txt, or is there a git trick where I can mark that the file I just deleted should be removed?

도움이 되었습니까?

해결책

Just do git add . On that folder after you have deleted the file in your finder and git will mark the file as deleted

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top