Xcode and Git Source Control : “The working copy XXXXX failed to commit files”

I was getting this also. at first I could restart the mac and everything was working fine. Eventually though the problem came back with a vengeance even with a restart it would not let me commit so I had to do the command line loving. one caveat being that you have to type xcrun before any git commands in terminal when using vanilla git installed with Xcode.

so type:

xcrun git config --global user.email [email protected]
xcrun git config --global user.name "your name"

after doing this everything was fine and dandy.


I faced the same issue after installing Xcode 7. The solution provided by Kent Latimer worked for me. Config without --global in workspace directory from terminal.

xcrun git config user.name "Toto"
xcrun git config user.email [email protected]