使用 git 遇见的问题

To https://git.coding.net/keither/EasyWay_ios.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://git.coding.net/keither/EasyWay_ios.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

git push 错误,因为没有先pull最新的代码,需要以下操作:


  • $ git fetch origin  
  • $ git merge origin/master  
  • $ git push origin master 

  • $ git fetch origin  
  • $ git merge origin/master  
  • $ git push origin master 
  • 你可能感兴趣的:(ios,git)