Git: getting changes from another branch

前端 未结 2 784
无人共我
无人共我 2020-12-04 07:48

I have a project which uses git and I\'d like to start a new branch to add a major new feature.

Under the main branch, I\'ll continue to add bug fixes a

2条回答
  •  北海茫月
    2020-12-04 08:19

    git checkout featurebranch && git rebase master
    

    As long as you haven't pushed yet, it is better to replay your changes on top of master.

    See:

    • git rebase vs. merge
    • git workflow and rebase vs merge questions

提交回复
热议问题