Skip to content

Instantly share code, notes, and snippets.

@FaKleiser
Last active January 11, 2019 16:56
Show Gist options
  • Save FaKleiser/1331219aea60522cd83a776c8b0f0e7a to your computer and use it in GitHub Desktop.
Save FaKleiser/1331219aea60522cd83a776c8b0f0e7a to your computer and use it in GitHub Desktop.
Some useful git aliases
[core]
editor = vim
eol = lf
autocrlf = input
[alias]
last = log -1 --stat
cp = cherry-pick
co = checkout
cl = clone
ci = commit
st = status -sb
br = branch
unstage = reset HEAD --
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment