Skip to content

Instantly share code, notes, and snippets.

@Fitzse
Created January 2, 2020 17:22
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 Fitzse/9debd09045649618f867ace503073769 to your computer and use it in GitHub Desktop.
Save Fitzse/9debd09045649618f867ace503073769 to your computer and use it in GitHub Desktop.
Git Aliases
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
unstage = reset HEAD --
amend = commit --amend -C HEAD
co = checkout
ci = commit
st = status
br = branch
g = grep --break --heading --line-number
hist = log --graph --pretty=format:'%h %ad | %s%d [%an]' --date=short
last = log -1 HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment