Skip to content

Commit

Permalink
cleanup git config
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jan 9, 2022
1 parent 0dc54a7 commit aaa87b2
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[include]
path = ~/.gitconfig.local

[core]
editor = vim
excludesfile = ~/.gitignore
whitespace = space-before-tab,trailing-space

[apply]
# Detect whitespace errors when applying a patch
whitespace = fix

[color]
# Use colors in Git commands that are capable of colored output when
# outputting to the terminal. (This is the default setting in Git > 1.8.4.)
ui = auto

[color "branch"]
current = yellow reverse
local = yellow
remote = green

[color "diff"]
meta = yellow
frag = magenta
old = red
new = green

[color "status"]
added = green
changed = cyan
untracked = red

[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true

[push]
default = matching

[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[commit]
gpgsign = true

[alias]
# git change-commits GIT_COMMITTER_NAME "old name" "new name"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
# from https://help.github.com/articles/remove-sensitive-data
remove-file = "!f() { git filter-branch -f --index-filter \"git rm --cached --ignore-unmatch $1\" --prune-empty --tag-name-filter cat -- --all; }; f"
[gc]
auto = 1
[gpg]
program = gpg2
[credential]
helper = !git-credential-1password
[pull]
rebase = false
[fetch]
prune = true
[gui]
pruneDuringFetch = true

0 comments on commit aaa87b2

Please sign in to comment.