Skip to content

Instantly share code, notes, and snippets.

@liuhoward
Created June 29, 2018 21:39
Show Gist options
  • Save liuhoward/ca944c8718cd129b279f97e188760a64 to your computer and use it in GitHub Desktop.
Save liuhoward/ca944c8718cd129b279f97e188760a64 to your computer and use it in GitHub Desktop.
git config
[core]
editor = vim
excludesfile = ~/.gitignore_global
[alias]
diffall = git-diffall
st = status
pl = pull --ff-only
ps = push
co = checkout
ci = commit
df = difftool
cp = cherry-pick
ca = commit --amend
br = branch
l = log --stat
last = log -1
lg = log -20 --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
up = push origin
lf = log --follow -p
aa = ls-files --modified
su = status -uno
cm = commit -m
uf = push origin -f
cl = clean -fdx
fe = fetch --prune
cf = clean -fdx
bd = branch -D
cb = checkout -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment