Created
December 15, 2015 10:05
-
-
Save JamesTryand/e01827a441a1747a8b30 to your computer and use it in GitHub Desktop.
Some Nice Aliases For Git courtesy of CaRDiaK
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
[alias] | |
lg = log --graph --oneline --all --decorate | |
lga = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(bold white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lgv = 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 | |
nuke = !git clean -xfd && git reset HEAD --hard && git status | |
clear = !git add -A && git checkout -f && git status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment