简体   繁体   中英

move branch so that it branches off from master in git

i made a mistake so my branch now is:

master -> a -> b

but its suppose to be

master -> a
master -> b

now b has a's changes and now ive committed a bunch of stuff on b already. is there any way i can do so branch b braches off from master and not from a?

这个确切的情况在git rebase手册中作为示例显示:

git rebase --onto master a b

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM