dotfiles/dot_config/git/private_config.tmpl

152 lines
3.8 KiB
Cheetah
Raw Normal View History

2022-02-03 17:50:46 +01:00
[user]
name = Gabriel Augendre
email = gabriel@augendre.info
[color]
ui = true
status = auto
branch = auto
diff = auto
interactive = auto
[push]
default = simple
2022-11-02 12:54:34 +01:00
autoSetupRemote = true
followtags = true
2022-10-30 16:53:12 +01:00
[help]
autocorrect = immediate
2023-02-04 16:38:07 +01:00
{{- if hasKey . "proxy" }}
2023-02-02 12:21:50 +01:00
[http]
proxy = {{ .proxy.protocol }}://{{ .proxy.address }}:{{ .proxy.port }}
[https]
proxy = {{ .proxy.protocol }}://{{ .proxy.address }}:{{ .proxy.port }}
2023-02-04 16:38:07 +01:00
{{- end }}
2022-02-03 17:50:46 +01:00
[alias]
ci = commit
cp = cherry-pick
co = checkout
cob = switch -c
br = branch
pul = pull
pus = push
fe = fetch
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lol = log --graph --decorate --pretty=oneline --abbrev-commit
gl = log --graph --pretty=format:'%C(auto)%h %C(bold blue)<%an>%Creset%C(auto) (%G?) %d %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
wtf = log --pretty=tformat:\"%C(auto,yellow)%h%C(auto)%d%C(auto,reset) by %C(auto,blue)%cn%C(auto,reset), %C(auto,cyan)%ar%C(auto,reset)%n %s%n\" --stat
s = status -sb
ign = ! "curl -L -s https://www.gitignore.io/api/$@"
syn = ! "git pull --rebase && git push"
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
praise = blame
pushf = push --force-with-lease --force-if-includes
2022-02-09 09:23:20 +01:00
cobf = ! "f() { git branch -D $1 && git switch -c $1; }; f"
2022-02-03 17:50:46 +01:00
sw = switch
swc = switch
balance = blame
tagam = ! "f() { git tag -a $1 -m \"$1\"; }; f"
pushtag = push --follow-tags
2022-09-09 10:50:30 +02:00
pushnoci = push -o ci.skip
2023-03-20 15:23:19 +01:00
diffs = diff --staged
2024-01-26 09:00:16 +01:00
restores = restore --staged
2024-11-18 10:37:43 +01:00
rmtag = ! "f() { git tag --delete $1; git push --delete origin $1; }; f"
[commit]
2024-11-27 14:20:13 +01:00
verbose = true
[rerere]
2024-11-27 14:20:13 +01:00
enabled = true
2022-02-03 17:50:46 +01:00
[core]
editor = nvim
attributesfile = {{ .chezmoi.homeDir }}/.config/git/attributes
2022-02-03 17:50:46 +01:00
autocrlf = input
[submodule]
2024-11-27 14:20:13 +01:00
recurse = true
[fetch]
2024-11-27 14:20:13 +01:00
prune = true
prunetags = true
[log]
2024-11-27 14:20:13 +01:00
date = iso
[status]
2024-11-27 14:20:13 +01:00
submoduleSummary = true
2022-04-19 09:46:51 +02:00
[diff]
colorMoved = default
algorithm = histogram
submodule = log
tool = nvimdiff
2022-02-03 17:50:46 +01:00
[diff "color"]
textconv=pygmentize
[diff "pandoc2md"]
textconv=pandoc --to=mardown
[diff "pdfconv"]
textconv=pdftohtml -stdout
[diff "exif"]
textconv=exiftool
[diff "ziplist"]
textconv=unzip -l
2022-04-19 09:46:51 +02:00
[merge]
conflictstyle = zdiff3
tool = nvimdiff
2022-02-03 17:50:46 +01:00
[pull]
2024-02-04 00:01:06 +01:00
rebase = true
[rebase]
2024-11-27 14:20:13 +01:00
autosquash = true
autostash = true
updateRefs = true
2022-02-03 17:50:46 +01:00
[init]
defaultBranch = master
[branch]
2024-11-27 14:20:13 +01:00
sort = -committerdate
2022-02-03 17:50:46 +01:00
[advice]
detachedHead = false
2022-10-05 19:51:17 +02:00
[filter "lfs"]
2023-02-04 16:38:07 +01:00
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
2022-10-06 15:12:28 +02:00
[checkout]
2023-02-04 16:38:07 +01:00
defaultRemote = origin
2022-10-05 19:51:17 +02:00
2022-11-19 16:39:35 +01:00
[tag]
2023-02-04 16:38:07 +01:00
sort = version:refname
[url "git@github.com:"]
2024-11-27 14:20:13 +01:00
insteadOf = "https://github.com/"
insteadOf = "gh:"
2024-12-06 11:38:08 +01:00
{{- if eq .chezmoi.os "darwin" }}
[credential]
2024-11-27 14:20:13 +01:00
helper = osxkeychain
2024-12-06 11:38:08 +01:00
{{ end }}
2023-04-05 10:28:40 +02:00
[include]
2024-11-27 14:20:13 +01:00
path = host.config
path = sendemail
2024-11-27 14:20:13 +01:00
# git-town aliases & config
# https://www.git-town.com
[alias]
append = town append
compress = town compress
contribute = town contribute
diff-parent = town diff-parent
hack = town hack
delete = town delete
observe = town observe
park = town park
prepend = town prepend
propose = town propose
rename = town rename
repo = town repo
set-parent = town set-parent
ship = town ship
sync = town sync
[git-town]
push-hook = true
push-new-branches = false
create-prototype-branches = false
ship-strategy = api
ship-delete-tracking-branch = false
sync-tags = true
sync-upstream = true
perennial-branches = master
sync-feature-strategy = rebase
sync-perennial-strategy = rebase