Last active
April 12, 2019 14:20
-
-
Save carlohcs/931bab680feec6674c024f700d725967 to your computer and use it in GitHub Desktop.
Provide a better git custom log view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Git Custom Log View
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