TIL about the "git history" command, which I want to share with you.

https://lalitm.com/post/git-history/
https://news.ycombinator.com/item?id=48901010

There is:

- `git history fixup`, to amend a commit earlier in the history
- `git history reword`, to just change the commit message
- `git history split`, to split a commit into two

These are about the most common operations I do (through 'git rebase -i'), because `etc/committer.scm` makes the initial commits.

If I understand correctly, these commands rebase every affected branch, which is useful when you are juggling multiple branches at the same time, which often happens with large topic branches.

The `fixup` subcommand is apparently only available since git 2.55, while Guix still ships 2.54. See https://codeberg.org/guix/guix/pulls/9932


Reply via email to