Git 注意

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

相關文章
相關標籤/搜索