How to rebase local branch with remote master

后端 未结 7 1274
北海茫月
北海茫月 2020-11-28 17:03

I have a cloned project from a master branch from remote repository remote_repo. I create a new branch and I commit to that branch. Other programmers pushed to

7条回答
  •  一向
    一向 (楼主)
    2020-11-28 17:41

    Step 1:

    git fetch origin
    

    Step 2:

    git rebase origin/master
    

    Step 3:(Fix if any conflicts)

    git add .
    

    Step 4:

    git rebase --continue
    

    Step 5:

    git push --force
    

提交回复
热议问题