Skip to content

Instantly share code, notes, and snippets.

@wongjiahau
Last active October 15, 2017 14:53
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 wongjiahau/557defb6dfeff811cc446759bd11f536 to your computer and use it in GitHub Desktop.
Save wongjiahau/557defb6dfeff811cc446759bd11f536 to your computer and use it in GitHub Desktop.
My gitconfig file (gitrc)
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
[diff "astextplain"]
textconv = astextplain
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %
required = true
process = git-lfs filter-process
[credential]
helper = manager
[alias]
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
st = status
br = branch
db = branch -d
ci = commit -m
ca = commit -am
co = checkout
cb = checkout -b
ds = diff --staged
ps = push
pl = pull
p = !git pull && git push && git lg
review-local = "!git lg @{push}.."
last = !git lg HEAD~1..HEAD && git diff HEAD~1..HEAD
undo = !git checkout --$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment