Skip to content

Instantly share code, notes, and snippets.

@rsrchboy
Last active March 15, 2019 14:51
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 rsrchboy/7327544 to your computer and use it in GitHub Desktop.
Save rsrchboy/7327544 to your computer and use it in GitHub Desktop.
Various ways to spread team-wide git-goodness in /etc/gitconfig.ini.Note that this explicitly allows for an additional included system-wide configuration, and is overridden in the usual fashion by the user's "global" ~/.gitconfig and the repository's own .git/config.
; this is... /etc/gitconfig!
;
; local system-wide changes should be made by editing:
; /etc/gitconfig.local
[color]
ui = auto
[push]
default = upstream
[branch]
autosetuprebase = always
autosetupmerge = true
[rerere]
enabled = true
autoupdate = true
[rebase]
stat = true
autostash = true
autosquash = false
[diff]
algorithm = patience
[format]
pretty = fuller
[merge]
log = true
defaultToUpstream = true
[notes]
displayRef = refs/notes/*
[http]
sslVerify = true
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
; very useful during merge conflicts and you know that one file wins over the other
ours = checkout --ours --
theirs = checkout --theirs --
; allow for local system-wide config if needed
[include]
path = /etc/gitconfig.local
; GistID: 7327544
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment