git rebase onto remote updates

后端 未结 4 2524
慢半拍i
慢半拍i 2020-12-23 18:39

I work with a small team that uses git for source code management. Recently, we have been doing topic branches to keep track of features then merging them into master local

4条回答
  •  隐瞒了意图╮
    2020-12-23 19:24

    I have found, over time, my favorite solution is:

    git checkout topic
    # make [n] commits
    git rebase -i HEAD~[n] #clean up time
    git checkout master
    git pull --rebase
    git checkout topic
    git rebase master
    git checkout master
    git merge topic
    git push origin
    

提交回复
热议问题