使用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时,我看到了一个正确的电子邮件地址.我没有看到它从哪里拉出不正确的.
和大多数人一样,我希望,我有正确的user.email和user.name 全局设置,之前从未遇到过Xcode的问题.
我发现通过制作这些设置本地 Xcode再次开心.
那是:
cd <YourCodeRepository>
xcrun git config user.email "you@example.com"
xcrun git config user.name "Your Name"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1845 次 |
| 最近记录: |