git push提示当前分支最新提交落后于对应的远程分支
phpcn_u1582
phpcn_u1582 2017-05-02 09:45:27
0
1
608

如标题所说,push总是提示我这种错误,但是我可以确定我已经merge了最新的代码,而且即便是我重新clone了最新的代码最后push的时候还是会提示我落后于远程分支

phpcn_u1582
phpcn_u1582

reply all (1)
刘奇

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!