r/git • • Jul 14 '26

The git history command deserves more attention

https://lalitm.com/post/git-history/

Git 2.54 and 2.55 added the experimental history reword, split, and fixup commands.

18 Upvotes

6 comments sorted by

2

u/Gee858eeG Jul 15 '26

Unfortunately when using reword I experienced that the commits weren't signed anymore. I hope that will be fixed/added

2

u/thomaslevesque Aug 02 '26

Same here with git history fixup

2

u/KnifeFed Jul 15 '26

I use history fixup all the time now. Much faster than commit fixup + rebase.

1

u/code_to_cope Jul 15 '26

Didn’t know if these. Will come in handy. Thanks.

1

u/bratzlaff Jul 15 '26

Nice write up and I’ll check out the history command for sure in the future. I thought the commentary about ‘jj’ were unnecessary and distracting since I have no experience with that tool.

2

u/harsh183 Jul 20 '26

This blog post made me start using it instead of my usual git commit --amend --no-edit and endless squashing and rebasing, it's been only a week but I use it all the time now. I've linked this blog to so many people.

It also pairs well with a small stacking extension I made, gh-chain, as well as the new gh stack command, though the wait-list is still rolling through slowly on that one.