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

> If I want to rebase B on the new A, well, those duplicated commits will cause me some amount of pain

Not really. Git will recognize commits that produce an identical diff and skip them. Your only pain will be that for each skipped commit, you will see a notification line in the output of your `git rebase`:

    warning: skipped previously applied commit <hash>


If I had a nasty rebase of A, then git isn't smart enough to figure out that the new A' commits are similar enough to the old commits to know to skip the old-A commits.




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

Search: