Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top