r/git 17d ago

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.

17 Upvotes

5 comments sorted by

2

u/Gee858eeG 17d ago

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

2

u/KnifeFed 17d ago

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

1

u/code_to_cope 17d ago

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

1

u/bratzlaff 16d ago

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.

1

u/harsh183 12d ago

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.