3 ms·
Use the interactive rebase. It shows a list of commits which you can reorder, squash, remove or edit. Reordering is pretty powerful. If you made a mistake, com
by sznio 3y ago
Use the interactive rebase. It shows a list of commits which you can reorder, squash, remove or edit.
Reordering is pretty powerful. If you made a mistake, commit the fix, then move it to the commit where you introduced the mistake, and squash. Removing broken commits makes `bisect` nicer to use when you're desperate enough to use it.
Obviously don't do this on commits you've already published.