Last active
August 29, 2015 13:57
-
-
Save florida/9849664 to your computer and use it in GitHub Desktop.
Kodermine Git files
This file contains 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
# Auto color for diffs - | |
[color] | |
ui = auto | |
[alias] | |
# shows the changed words in one line instead of two | |
wdiff = diff --color-words | |
# one line logs | |
oneline = log --oneline --decorate | |
# an awesome log with a visual graph of branches on the side | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
# similar to lg1 but adds a new line | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" | |
## Source: http://stackoverflow.com/questions/1057564/pretty-git-branch-graphs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment