4 ms·
Another quick visualization method built into Git: git log —-graph —-oneline —-decorate # —-graph for the visualization # —-oneline for compact commits
by divbzero 6y ago
Another quick visualization method built into Git:
git log —-graph —-oneline —-decorate
# —-graph for the visualization
# —-oneline for compact commits
# —-decorate for tag and branch refs
You can also add:
# —-all to include all branches
I typically add aliases to ~/.gitconfig to use these options by default.
- galaxyLogic 6y agoTRIED: git log —-graph —-oneline —-decorate GOT: fatal: ambiguous argument '—-graph': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'
- OJFord 6y agoRetype the dashes, you've posted something different to GP, em dash en dash, or something, presumably your browser/clipboard/term did something funky when you copied.
- alwillis 6y agoShould be: git log --graph --oneline --decorate
- divbzero 6y agoThanks for correcting my error. Stupid “smart” dashes on my phone.