Skip to content

Instantly share code, notes, and snippets.

@alejandrogr
Last active March 7, 2018 10:04
Show Gist options
  • Save alejandrogr/0663a43a326ffe56fdcdd8c63b9dbe9f to your computer and use it in GitHub Desktop.
Save alejandrogr/0663a43a326ffe56fdcdd8c63b9dbe9f to your computer and use it in GitHub Desktop.
[alias]
s = status -s -b
cp = cherry-pick
st = status -s
cl = clone
ci = commit
co = checkout
br = branch
diff = diff --word-diff
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
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
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
fl = log -u
dlc = diff --cached HEAD^
gr = grep -Ii
r = reset
r1 = reset HEAD^
r2 = 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