Skip to content

Instantly share code, notes, and snippets.

@andypost
Last active December 21, 2021 10:42
Show Gist options
  • Save andypost/8b289bbfc939fd7e2af6 to your computer and use it in GitHub Desktop.
Save andypost/8b289bbfc939fd7e2af6 to your computer and use it in GitHub Desktop.
My git config
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol
editor = mcedit
preloadindex = true
autocrlf = false
safecrlf = false
ignorecase = false
excludesfile = ~/.gitignore
[push]
default = tracking
[diff]
renames = copies
[alias]
b = branch
ba = branch -a
co = checkout
ci = commit
df = !git diff --no-prefix && git diff --staged --no-prefix
cl = reset --hard
st = status -uno
l = log --pretty=oneline --abbrev-commit
diffup = !git log --oneline --reverse @{u}... && git diff 8.x... > $1 && git diff @{u} > interdiff.txt && echo
[apply]
whitespace = nowarn
[branch]
autosetuprebase = always
[grep]
lineNumber = true
[merge]
defaultToUpstream = 1
[user]
name = Andy Postnikov
[credential]
helper = cache --timeout=3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment