Git使用

理解 XCode 中的 Git 版本控制  http://www.open-open.com/lib/view/open1399179356984.html

 

xcode提交版本时提示The working copy "MyPro" failed to commit files.

*** Please tell me who you are.
Run
  git config --global user.email "[email protected]"
  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
 
解决办法:
打开终端,进入自己的项目下,有个.git目录
cd  ~/MyPro/.git
vi  config
 
[core]
           repositoryformatversion = 0
           filemode = true
           bare = false
           logallrefupdates = true
           ignorecase = true
 #添加以下三行:
 [user]
     email = [email protected]
     name = yourname
 
 

你可能感兴趣的:(git)