Skip to content

Instantly share code, notes, and snippets.

@kmorcinek
Created March 27, 2020 20:59
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 kmorcinek/0b9ba33b3159e83935d983206e860644 to your computer and use it in GitHub Desktop.
Save kmorcinek/0b9ba33b3159e83935d983206e860644 to your computer and use it in GitHub Desktop.
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%an]" --decorate
lst = log --pretty=format:%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%an] --decorate -10
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cgreen\\ [%an]" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ [%an]" --decorate --numstat
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
cp = cherry-pick
st = status -s
ci = commit
co = checkout
br = branch
diff = diff --word-diff
wdiff = diff --word-diff=plain
dc = diff --cached
r = reset
r1 = reset HEAD^
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment