How to rebase local branch with remote master

后端 未结 7 1278
北海茫月
北海茫月 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:34

    git fetch origin master:master pulls the latest version of master without needing to check it out.

    So all you need is:

    git fetch origin master:master && git rebase master

提交回复
热议问题