4 ms·
Plugging my own tool: if you like to cultivate a stack of commits, you'll know how awkward git makes it to edit previous commits. With git-prev-next you can run
by ridiculous_fish 4y ago
Plugging my own tool: if you like to cultivate a stack of commits, you'll know how awkward git makes it to edit previous commits. With git-prev-next you can run 'git prev 3' and then 'git commit --amend'.
https://github.com/ridiculousfish/git-prev-next https://github.com/ridiculousfish/git-prev-next
- maxekman 4y ago`git rebase -i origin/main` (or HEAD~N or any other base) with the e/edit action on selected commit will do the same with only built in functionality.
- ridiculous_fish 4y agoYep, and git-prev-next is built on interactive rebase. It's just a lot faster to run `git prev`, compared to `git rebase -i HEAD^^` and then muck around in a text editor.
- arxanas 4y agoThe mentioned tool `git-branchless` (I am the author) also supports `git prev 3` followed by `git commit --amend`. See https://github.com/arxanas/git-branchless/wiki/Command:-git-next,-git-prev https://github.com/arxanas/git-branchless/wiki/Command:-git-...