Skip to content

Instantly share code, notes, and snippets.

@dyoung522
Last active March 12, 2020 20:59
Show Gist options
  • Save dyoung522/830001b797bfa92c088d13bb3446df7d to your computer and use it in GitHub Desktop.
Save dyoung522/830001b797bfa92c088d13bb3446df7d to your computer and use it in GitHub Desktop.
git config file
[user]
email = dyoung522@gmail.com
name = Donovan Young
[credential]
helper = osxkeychain
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
wtf = !$ZSH/bin/git-wtf
rank-contributers = !$ZSH/bin/git-rank-contributers
count = !git shortlog -sn
s = status -s
st = status
lg = log --oneline --decorate --all --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
lh = "!git ls | head"
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
diff = auto
status = auto
branch = auto
ui = true
[core]
excludesfile = ~/.gitignore
editor = vim
autocrlf = input
[apply]
whitespace = nowarn
[mergetool]
keepBackup = false
[difftool]
prompt = false
[help]
autocorrect = 1
[push]
# See `git help config` (search for push.default)
# for more information on different options of the below setting.
#
# Setting to git 2.0 default to surpress warning message
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment