cfg/.gitconfig

82 lines
1.5 KiB
INI
Raw Permalink Normal View History

[alias]
br = branch
ci = commit
co = checkout
df = diff
lg = "log --color --graph --pretty=format:'%Cred%h%Creset %Cgreen(%ci)%Creset [%G?]%C(yellow)%d%Creset %s %C(bold blue)<%an / %cn>%Creset' --abbrev-commit"
ri = rebase --interactive --autosquash
st = status
2016-07-21 13:41:17 +00:00
[branch]
autosetuprebase = always
2016-07-21 13:41:17 +00:00
[color]
branch = auto
diff = auto
status = auto
2016-07-21 13:41:17 +00:00
[commit]
gpgsign = true
2016-07-21 13:41:17 +00:00
[core]
bare = false
excludesfile = ~/.gitignore_global
filemode = true
logallrefupdates = true
pager = less -F -X
repositoryformatversion = 0
warnAmbiguousRefs = false
2016-07-21 13:41:17 +00:00
[credential]
helper = vault
2016-07-21 13:41:17 +00:00
[diff]
renames = true
2016-07-21 13:41:17 +00:00
[filter "jsonfmt"]
clean = jq -S . %f
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[filter "osslvault"]
clean = git-filter-osslvault -f %f clean
smudge = git-filter-osslvault smudge
required = true
[gpg]
format = ssh
2016-07-21 13:41:17 +00:00
[push]
default = upstream
gpgSign = if-asked
2016-07-21 13:41:17 +00:00
[receive]
denyNonFastForwards = true
2016-07-21 13:41:17 +00:00
[rerere]
enabled = true
2016-07-21 13:41:17 +00:00
[safe]
# Don't try this at home: Need to work with mounted repos and
# therefore to disable the directory safety check
directory = *
[gpg.ssh]
allowedSignersFile = ~/.git_allowed_signers
[user]
email = knut@ahlers.me
name = Knut Ahlers
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGVbYCO34iJikI+nLxpu2zjrvIh92GQqiss3Bkt+CSo4 loki
# Mappings for private repos and `go get`
[url "git@bitbucket.org:"]
insteadOf = https://bitbucket.org/
[url "git@github.com:"]
insteadOf = https://github.com/