41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
[user]
|
|
email = josh@redstrate.com
|
|
name = Joshua Goins
|
|
[core]
|
|
# disable autocrlf
|
|
autocrlf = input
|
|
excludesfile = ~/.config/git/excludes
|
|
[color]
|
|
ui = auto
|
|
[pull]
|
|
ff = only
|
|
[init]
|
|
defaultBranch = main
|
|
[push]
|
|
default = nothing
|
|
[alias]
|
|
# pushes to all remotes (currently lacking a way to specify ref name, it will push EVERYTHING)
|
|
push-all = !git remote | xargs -L1 git push --all
|
|
# fetches all remotes
|
|
fetch-all = !git remote | xargs -L1 git fetch
|
|
# prettier log command
|
|
pretty-log = log --decorate --oneline --graph
|
|
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"
|
|
[pull]
|
|
# use interactive rebase by default
|
|
rebase = interactive
|
|
[push]
|
|
# push relevant tags
|
|
followTags = true
|
|
[sendemail]
|
|
smtpuser = josh
|
|
smtpserver = ryne.moe
|
|
smtpencryption = tls
|
|
smtpserverport = 587
|
|
annotate = yes
|
|
[includeIf "gitdir:~/work/"]
|
|
path = ~/.config/git/config-work
|
|
[includeIf "gitdir:~/kde/"]
|
|
path = ~/.config/git/config-personal
|
|
[includeIf "gitdir:~/sources/"]
|
|
path = ~/.config/git/config-personal
|