The Git Commands I Run Before Reading Any Code | Hacker News
TL;DR AI
2 min readKey summary
The post discusses using jj (jujutsu) and git commands to analyze commit history.
It provides jj log revset examples and templates, such as ancestors(trunk()) and description(regex:"(?i)fix|bug|broken").
The author says jj is much more verbose and closer to programming, though it has fewer flags to remember.
Revset language is cited as a high-ranking reason to use jj, but the author prefers git because it is wired in their fingers and ubiquitous.
Examples include a signing workflow (jj log -r 'mine() & ~signed()' and jj sign -r 'mine() & ~signed()') and a summary alias for metrics.


