Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save vladholubiev/8da2a0f46dbc880fd011 to your computer and use it in GitHub Desktop.

Select an option

Save vladholubiev/8da2a0f46dbc880fd011 to your computer and use it in GitHub Desktop.
My git aliases
Count lines in repository
  • alias.lines diff --shortstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904
Pretty log
  • alias.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
  • alias.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(rese t)' --all
  • alias.lg !git lg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment