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

Not sure why downvoted, this is the "correct" way. Can also do --autosquash etc. at the same time.


what makes this more correct than the other way? if anything an interactive rebase requires a lot more ceremony


Throwing away the commit and doing it again can easily go wrong. It is easy to commit unintended changes by mistake.

The interactive rebase is a completely normal operation and intended for exactly this situation. It is also much easier to craft more than one commit, and last minute fixes of spelling errors and such things.




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

Search: