Skip to content

Instantly share code, notes, and snippets.

@JamesTryand
Created December 15, 2015 10:05
Show Gist options
  • Save JamesTryand/e01827a441a1747a8b30 to your computer and use it in GitHub Desktop.
Save JamesTryand/e01827a441a1747a8b30 to your computer and use it in GitHub Desktop.
Some Nice Aliases For Git courtesy of CaRDiaK
[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