Skip to content

Instantly share code, notes, and snippets.

@carlohcs
Last active April 12, 2019 14:20
Show Gist options
  • Save carlohcs/931bab680feec6674c024f700d725967 to your computer and use it in GitHub Desktop.
Save carlohcs/931bab680feec6674c024f700d725967 to your computer and use it in GitHub Desktop.
Provide a better git custom log view
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config --global alias.st "status -sb"
git config --global alias.co "checkout"
git config --global alias.cm = "commit"
git config --global alias.ac = "!git add -A && git commit"
git config --global alias.st "status -sb"
git config --global alias.tags "tag -l"
git config --global alias.branches "branch -a"
git config --global alias.remotes "remote -v"
@carlohcs
Copy link
Author

carlohcs commented Oct 29, 2016

Git Custom Log View

screenshot from 2016-10-29 13-28-08

this will:
-one commit per line

-show graph of commits

-abbreviated commit IDs

-dates relative to now

-show commit references (like git log --decorate)

-lots of colour

-show author of the commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment