Git History Graph Command
Posted by Critical-Volume2360@reddit | programming | View on Reddit | 1 comments
A while back a friend gave me a super useful git command for showing git history in the terminal. Here's the command:
git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'"alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'
I just made this alias with it
alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'"alias graph="git log --graph --decorate --all --pretty=format:'%C(auto)%h%d %C(#888888)(%an; %ar)%Creset %s'"
I love this command and though I'd share it. Here's what it looks like:
[Screenshot-2025-11-05-at-9-58-20-AM.png](https://postimg.cc/Mv6xDKtq)
PhroznGaming@reddit
This is cool thanks