Git: getting changes from another branch

前端 未结 2 786
无人共我
无人共我 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:17

    git checkout featurebranch && git merge master

    You can do this as many times as you like; it won't affect master and you will be able to easily do it the other way around whenever you find out you are done with the feature branch.

提交回复
热议问题