常說的先拉再推罩句,先pull再push
遇到問題:
! [rejected] dev-fl -> dev-fl (non-fast-forward)
error: failed to push some refs to ‘....git’
hint: Updates were rejected because the tip of your current branch is behind
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.
解決:
git add 和 git commit 已經(jīng)執(zhí)行成功
git status (顯示個(gè)人分支)毁葱,下面依次執(zhí)行下面三個(gè)
git pull origin master
git pull origin dev
git push origin dev-fl?
分支推送成功匙铡。