google到的教程针对旧版Xcode的,和Xcode5有些不一样。 Add Remote后,push会提示: To git#github.com:vincent1q84/NewOne
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git#github.com:vincent1q84/NewOne'
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 merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
求解啊。
2楼 @vincent1q84 先merge再提交。git用的不熟,我还是以前svn用的多些,不过git的hint已经很详细了,这点绝对要赞。以前在windows下用svn客户端那才叫恶心。报错出现的几个处理选项要在终端下才能执行,GUI客户端根本无从下手。