git push prompts that the latest commit of the current branch lags behind the corresponding remote branch
phpcn_u15822017-05-02 09:45:27
0
1
699
As the title says, push always prompts me with this error, but I can be sure that I have merged the latest code, and even if I re-clone the latest code, I will still be prompted to lag behind the remote when I push at the end. Branch
Back up a branch first git checkout -b master_bak
Delete git branch -D master
Re-pull git fetch origin master:master
git checkout master
git merge master_bak
git push origin master