6 ms·
`git rebase --onto FIRST_ID^ NEW_PARENT` is also super powerful to put a series of commits on top of a new parent when history has changed. That happens with
by timvisee 2y ago
`git rebase --onto FIRST_ID^ NEW_PARENT`
is also super powerful to put a series of commits on top of a new parent when history has changed.
That happens with PRs and squash merges quite often.
https://stackoverflow.com/a/29916361/1000145 https://stackoverflow.com/a/29916361/1000145