Skip to content

Instantly share code, notes, and snippets.

@mkloeckner
Last active August 29, 2015 14:04
Show Gist options
  • Save mkloeckner/0e0378748efe166ca8d7 to your computer and use it in GitHub Desktop.
Save mkloeckner/0e0378748efe166ca8d7 to your computer and use it in GitHub Desktop.
git alias
[alias]
tree = "forest --pretty=format:\"%C(red)%h %C(magenta)(%ar) %C(blue)%an %C(reset)%s\" --style=15 --reverse"
graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
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
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
lg3 = !"git lg1"
staged = diff --cached
daily = log --since '1 day ago' --online --author m.kloeckner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment