
United States

ALT panel 1: git rebase -i lets you garden your commits I use it like this: 1. make commits chaotically, git commit -am 'wip' 2. clean up with git rebase -i before sending them off for code review panel 2: interactive rebase's UI is a text file when you run git rebase -i main, it'll open a text editor with something like this in it: pick 399990 add some padding pick fb59d8 french translation pick 617b19 sort titles pick 31b81f hashchange panel 3: deleting commits You can delete a commit just by deleting that line in the text editor! (the line "french translation" is crossed out) panel 4: combine commits with fixup Here's how to combine all 4 commits into 1 commit: (f stands for fixup) pick 399990 add some padding f fb59d8 french translation f 617b19 sort titles f 31b81f hashchange panel 5: check that the tests pass with exec You can run make test on every intermediate commit to make sure your tests pass like this: git rebase -i --exec "make test" main



























