Skip to content

Instantly share code, notes, and snippets.

@lichray
Created February 7, 2018 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lichray/818153f6094eac0ed00c0a9caee65fe2 to your computer and use it in GitHub Desktop.
Save lichray/818153f6094eac0ed00c0a9caee65fe2 to your computer and use it in GitHub Desktop.
Common git aliases
[alias]
st = status
fix = commit --amend -C HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
discard = reset HEAD --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment