Skip to content

Instantly share code, notes, and snippets.

@Kwpolska
Created August 26, 2016 16:21
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 Kwpolska/9b56982bb3c1e9af74d1e8c5c4331758 to your computer and use it in GitHub Desktop.
Save Kwpolska/9b56982bb3c1e9af74d1e8c5c4331758 to your computer and use it in GitHub Desktop.
[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