首页 > 其他 > 详细

Git 注意

时间:2016-02-21 11:25:31      阅读:163      评论:0      收藏:0      [点我收藏+]

 结合gitbase 和 龟头来使用。

提交的时候出现这样的错误:

To git@git.oschina.net:bambom/Java-Server.git

 ! [rejected]        master -> master (non-fast-forward)

error: failed to push some refs to ‘git@git.oschina.net:bambom/Java-Server.git

hint: Updates were rejected because the tip of your current branch is behin

hint: its remote counterpart. Integrate the remote changes (e.g.

hint: ‘git pull ...‘) before pushing again.

hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.

 

是因为:README.md文件没在本地 

可以使用 git pull --rebase origin master 将其拉到本地。 然后就能将同步信息同步

在推送: git push -u origin master

Git 注意

原文:http://www.cnblogs.com/bambomtan/p/5204553.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!