Move branch to another branch

前端 未结 3 1056
甜味超标
甜味超标 2021-01-31 08:44

I have started doing some work on a branch which I have in term realised was the wrong branch. Is there a way to move a branch to a different branch.

For example:

<
3条回答
  •  佛祖请我去吃肉
    2021-01-31 09:14

    You could use git rebase --onto, e.g.,

    git rebase --onto new-base old-base your-branch
    

    So in your case, something like:

    git rebase --onto B E L
    

    should work.

提交回复
热议问题