Skip to content

Instantly share code, notes, and snippets.

@adrianmcli
Last active February 24, 2017 20:37
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 adrianmcli/2296a480bce9c51efef1ca113e020a17 to your computer and use it in GitHub Desktop.
Save adrianmcli/2296a480bce9c51efef1ca113e020a17 to your computer and use it in GitHub Desktop.
My Git config file
[color]
ui = true
[user]
name = Adrian Li
email = li.adrianmc@gmail.com
[core]
editor = /usr/bin/vim
excludesfile = /Users/liadrian/.gitignore
[alias]
adc = !git add -A && git commit
co = checkout
br = branch
st = status
aa = add --all
ci = commit
unstage = reset HEAD --
clean-branches = !git branch | grep -v "master" | sed 's/^[ *]*//' | sed 's/^/git branch -d /' | bash
alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
dsf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment