Xcode and Git Source Control: "Working copy of XXXXX failed to commit files"

I know this may be an ultra-newbie question, but although I have been coding for 18 years, for only a few days I used Source Control for my project and I feel completely lost.

I configured Git correctly and from time to time I make changes.

(File -> Source Control -> Commit)

However:

Whenever I try to delete a file (which originally existed) and then commit the changes, I get this error:

Working copy of MY_COPY_NAME failed to commit files

fatal: failed to switch to "/ the / path / of / the / file / i / just / deleted": no such file or directory

What's happening?

What should I do to commit changes even after deleting the file?

+5
2

git add -u your_file

-u , . -

git rm your_file

, , , Git

+4

, :

  • [Terminal] :
xcrun git config --global user.email your@Email.com

xcrun git config --global user.name "Enter Your Name"
0

All Articles