Skip to content

Instantly share code, notes, and snippets.

@Kwpolska Kwpolska/.gitconfig
Created Aug 26, 2016

Embed
What would you like to do?
[user]
name = Chris Warrick
email = kwpolska@gmail.com
username = Kwpolska
[color]
ui = 1
diff = auto
status = auto
branch = auto
[github]
user = Kwpolska
[alias]
vimdiff = difftool --tool=vimdiff --no-prompt
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
lgr = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
amend = !"EDITOR='true' git commit --amend"
shortid = rev-parse --short HEAD
id = rev-parse HEAD
co = !gitco
counts = !"git log --pretty='format:%an' | sort | uniq -c | sort --numeric --reverse"
gcounts = log --pretty='format:%an'
fcounts = !"sort | uniq -c | sort --numeric --reverse"
cleanbranches = !"git branch --merged | egrep -v '(^\\*|master|dev)' | xargs git branch -d"
[push]
default = matching
followTags = true
[pull]
rebase = true
[merge]
tool = vimdiff
[gui]
fontui = -family Roboto -size 10 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Consolas -size 11 -weight normal -slant roman -underline 0 -overstrike 0
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.