سؤال

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