< BACK

Git tips and tricks

Pretty-print tree-like view in terminal

Most useful is

git log --graph --all --decorate --pretty=oneline --abbrev-commit

showing, e.g.

67075f012acb501278bbc169e5c4cdbd.png

Other varieties:

git log --graph --oneline --all
git log --graph --oneline --all --decorate
git log --graph --decorate --pretty=oneline --abbrev-commit