Git says local branch is behind remote branch, but it's not

前端 未结 4 1315
时光取名叫无心
时光取名叫无心 2020-12-12 12:14

Scenario:

  1. I make a new branch
  2. hack on it
  3. commit it
  4. push it
  5. hack on it some more
  6. commit again
4条回答
  •  一个人的身影
    2020-12-12 12:39

    The solution is very simple and worked for me.

    Try this :

    git pull --rebase 
    

    then

    git push -u origin master
    

提交回复
热议问题