Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: