Created
March 3, 2022 16:03
-
-
Save tspng/54c33e6d9b653cfdcfb9d3d3fd6ecf14 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Git's per-user configuration file. | |
[push] | |
default = simple | |
[user] | |
name = tspng | |
email = tspng@socket.ch | |
[core] | |
excludesfile = /Users/tspng/.gitignore_global | |
[http] | |
# allow large deltas to be pushed | |
postBuffer = 1048576000 | |
[alias] | |
# common operations | |
ci = commit | |
co = checkout | |
st = status | |
df = diff | |
br = branch | |
ri = rebase --interactive --autosquash | |
# create nice git log output | |
lg = log --graph --decorate --abbrev-commit --date-order --pretty=format:'%C(green)%h%C(reset) : %s%C(red)%d%C(reset) (%C(blue)%an%C(reset), %C(blue)%ar%C(reset))' | |
lgall = log --graph --decorate --abbrev-commit --date-order --all --pretty=format:'%C(green)%h%C(reset) : %s%C(red)%d%C(reset) (%C(blue)%an%C(reset), %C(blue)%ar%C(reset))' | |
l = lgall -20 | |
sup = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD` | |
subl = !git status --porcelain | sed 's/ M //' | sed 's/?? //' | xargs subl | |
[pager] | |
# don't use pager when listing stash | |
stash = false | |
[pull] | |
rebase = false | |
[filter "lfs"] | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
required = true | |
clean = git-lfs clean -- %f | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[mergetool "sourcetree"] | |
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
trustExitCode = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment