Skip to content

Instantly share code, notes, and snippets.

@hoisel
Last active April 3, 2018 10:27
Show Gist options
  • Save hoisel/4cabc95ba753d8c5df0aa997372394bd to your computer and use it in GitHub Desktop.
Save hoisel/4cabc95ba753d8c5df0aa997372394bd to your computer and use it in GitHub Desktop.

Aliases

  • alias.qm=!git checkout $1; git merge @{-1}
  • alias.co=checkout
  • alias.slog=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --graph
  • alias.so=show --pretty='parent %Cred%p%Creset commit %Cred%h%Creset%C(yellow)%d%Creset%n%n%w(72,2,2)%s%n%n%w(72,0,0)%C(cyan)%an%Creset %Cgreen%ar%Creset'
  • alias.history=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --follow
  • alias.full-history=log --pretty='%C(red)%h%Creset %C(green)%d%Creset %s - %C(cyan)%an%Creset - %C(yellow)%cr%Creset' --follow --patch
  • alias.ce=config --global -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment