[筆記] transplant git branch to another base
`git rebase --onto [new parent] [old parent] [branch]`
Case:
```
-----A (master)
\
B (http-image)
\
C--D (dependency-update)
```
to
```
-----A (master)
|\
| B (http-image)
\
C--D (dependency-update)
```
command: `git rebase --onto master http-image dependency-update`
Ref:
- https://stackoverflow.com/questions/12355904/how-to-split-a-git-branch-into-two-branches
- https://git-scm.com/docs/git-rebase
2021-09-27 23:13:55
留言
Last fetch: --:--
現在還沒有留言!