Skip to content

Instantly share code, notes, and snippets.

@fojuth
Last active December 8, 2017 21:51
Show Gist options
  • Select an option

  • Save fojuth/1a00417f7a481d4b40fe6544e391d798 to your computer and use it in GitHub Desktop.

Select an option

Save fojuth/1a00417f7a481d4b40fe6544e391d798 to your computer and use it in GitHub Desktop.
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=default
cp = cherry-pick
s = status
cl = clone
c = commit -m
co = checkout
cob = checkout -b
b = branch
d = diff
dc = diff --cached
m = merge
sl = stash list
sa = stash apply
ss = stash save
a = add
p = push
l = pull
f = fetch
docs = commit -m 'Update API docs'
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment