结合gitbase 和 龟头来使用。git
提交的时候出现这样的错误:.net
To git@git.oschina.net:bambom/Java-Server.gitip
! [rejected] master -> master (non-fast-forward)rem
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 behinit
hint: its remote counterpart. Integrate the remote changes (e.g.ast
hint: 'git pull ...') before pushing again.date
hint: See the 'Note about fast-forwards' in 'git push --help' for details.error
是由于:README.md文件没在本地 bom
可使用 git pull --rebase origin master 将其拉到本地。 而后就能将同步信息同步
在推送: git push -u origin master