3 ms·
A nice tip from Scott Chacon by way of Conrad Parker[0] is to create `git lol` and `git lola` aliases to display a color-coded view of history layout in the con
by gbacon 10y ago
A nice tip from Scott Chacon by way of Conrad Parker[0] is to create `git lol` and `git lola` aliases to display a color-coded view of history layout in the console. Summary: add the following to your `~/.gitconfig`.
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[0]: http://blog.kfish.org/2010/04/git-lola.html http://blog.kfish.org/2010/04/git-lola.html
- hayd 10y agoYou can use the mnemonic "dog" or "adog". Note: the `--abbrev-commit` is redundant due to the `--pretty=oneline`.
- sangnoir 10y ago> Note: the `--abbrev-commit` is redundant due to the `--pretty=oneline` I've tried it and this is not true on my git version (1.9.1) - without the "--abbrev-commit", git displays the full hash