我可以在没有Xcode 6问题的情况下提交到这个存储库.git在终端中仍能正常工作,我可以在本地和远程提交.在Xcode 7中,我可以在本地但不是远程提交.它说身份验证失败,无法重置用户名.(它是灰色的).我在本地git配置文件中有正确的用户名.我还试图创建一个新帐户,但最终我遇到了无法输入userName的问题.
我的git配置--local --list
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=git@bitbucket.org:myUserName/myProject.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.failedTryToRename.remote=origin
branch.failedTryToRename.merge=refs/heads/master
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.master1.remote=origin
branch.master1.merge=refs/heads/master
user.name=myUserName
user.email=myUserName@gmail.com
Run Code Online (Sandbox Code Playgroud)
使用Xcode 7,我在将代码提交给git时遇到了问题.
I get this error:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'stevex@stevebookpro.(none)')
Run Code Online (Sandbox Code Playgroud)
我试过建议的git命令; 当我在存储库中运行git config user.email时,我看到了一个正确的电子邮件地址.我没有看到它从哪里拉出不正确的.