Xcode和Git源代码管理:“工作副本XXXXX无法提交文件” [英] Xcode and Git Source Control : “The working copy XXXXX failed to commit files”

查看:198
本文介绍了Xcode和Git源代码管理:“工作副本XXXXX无法提交文件”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Xcode开发和发布应用程序将近一年。我一直在使用git作为本地存储库和bitbucket作为远程存储库。一切都一直很好,直到今天早上。我现在收到错误'工作副本xxx未能提交文件。请告诉我你是谁。'然后Xcode建议我运行git config并给它一个电子邮件地址和名称。
我不知道为什么它突然需要知道我是谁。我不知道我以前是谁,我不想让它变得比现在更困惑。我没有在Mac上使用命令提示符做任何事情,所以我不确定它希望我输入此信息的位置。我隐约想起一年前看到使用命令提示符建立bitbucket的建议,但他们看起来很混乱,所以我做了一切,从xcode GUI。
这是xcode 4.6中的新东西吗?我该怎么办?

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?

推荐答案

我也是这样做的。起初,我可以重新启动Mac,一切工作正常。最终,即使重新启动,问题也会随着复仇而回来,但它不会让我承诺,所以我不得不执行命令行爱好。需要注意的是,在使用安装了Xcode的vanilla git时,必须在终端中的任何git命令之前键入xcrun。

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.

如此键入:

xcrun git config --global user.email your@email.com
xcrun git config --global user.name "your name"

完成此操作后,所有事情都很好,花花公子。

after doing this everything was fine and dandy.

这篇关于Xcode和Git源代码管理:“工作副本XXXXX无法提交文件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆