Git 注意

 结合gitbase 和 龟头来使用。

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

To [email protected]:bambom/Java-Server.git

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

error: failed to push some refs to '[email protected]: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 注意)