Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
370 views
in Technique[技术] by (71.8m points)

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

I have been using Xcode to develop and publish apps for almost a year. I have been using git as the local repository and bitbucket as the remote repository. Everything has been going fine until this morning. I am now getting an error 'The working copy "xxx" failed to commit files. Please tell me who you are.' Xcode then suggests that I run git config and give it an email address and name. I have no idea why it suddenly needs to know who I am. I don't know who it thought I was before and I don't want it to become more confused than it is now. I have not done anything with command prompts on the Mac so I am not sure where it expects me to enter this information. I vaguely recalled seeing suggestions on using the command prompt to set up bitbucket a year ago but they looked confusing so I did everything from the xcode GUI. Is this something new in xcode 4.6? What do I do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...