4 ms·
A quick mnemonic I read on StackOverflow[1] some time ago: When using git log, do it like "a dog" git log --all --decorate --oneline --graph I must say
by MayeulC 9y ago
A quick mnemonic I read on StackOverflow[1] some time ago:
When using git log, do it like "a dog"
git log --all --decorate --oneline --graph
I must say I had forgotten about the `--all` part, but the article mentions that it should be on by default if running interactively in the terminal, at least with recent versions of git.
[1]It might have been https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs https://stackoverflow.com/questions/1057564/pretty-git-branc... but I am not 100% sure.
- jwilk 9y agoI don't believe the article's claim about --all being on by default is true.
- zwischenzug 9y agoIt's not, it was a typo I've corrected.
- shezi 9y agoSo the obvious alias would be git config --global alias.logadog "log --all --decorate --online --graph"