Git 注意

 结合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

posted @ 2016-02-21 10:57  bambom  阅读(223)  评论(0编辑  收藏  举报