git pull *after* git rebase?

后端 未结 4 2014
你的背包
你的背包 2021-01-29 20:39

I have a feature branch, and a master branch.

Master branch has evolved and I mean to have those updates to diverging as little as possible from master branch.

S

4条回答
  •  逝去的感伤
    2021-01-29 20:59

    If the remote versions of master and feature/branch are up-to-date individually, then simply reset your local feature branch

    git checkout feature/branch
    git fetch origin feature/branch
    git reset --hard origin/feature/branch
    

    then if you want to bring in changes in the master branch,

    git rebase origin/master
    

提交回复
热议问题