如何将Xcode的的项目提交到github?

vincent1q84 发布于 2013年10月07日 | 更新于 2013年10月08日
无人欣赏。

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.

求解啊。

共5条回复
tinyfool 回复于 2013年10月08日

把格式弄对,这样别人看起来多累,帮你忙,还来受你摧残?

vincent1q84 回复于 2013年10月08日

1楼 @tinyfool sorry,已修改。我在编辑的时候看到的格式是对的,没注意发出来之后就变的惨不忍睹了。

Archfeed 回复于 2013年10月08日

我觉得hint里说的已经很明白了吧

tinyfool 回复于 2013年10月08日

3楼 @Archfeed

Archfeed 回复于 2013年10月08日

2楼 @vincent1q84 先merge再提交。git用的不熟,我还是以前svn用的多些,不过git的hint已经很详细了,这点绝对要赞。以前在windows下用svn客户端那才叫恶心。报错出现的几个处理选项要在终端下才能执行,GUI客户端根本无从下手。

登录 或者 注册
相关帖子