Configure git for per-project identities

This commit is contained in:
Talia 2020-03-31 10:27:50 +02:00
parent 104c845ebb
commit ee8f0ac2fe

View file

@ -1,9 +1,12 @@
# vim: set filetype=gitconfig :miv # # vim: set filetype=gitconfig :miv #
[core] [core]
editor = vim -f editor = vim -f
[commit]
# Sign commits by default
gpgSign = true
[diff] [diff]
tool = vimdiff tool = vimdiff
guitool = gvimdiff guitool = gvimdiff
[difftool] [difftool]
confirm = false confirm = false
prompt = true prompt = true
@ -12,8 +15,13 @@
[push] [push]
default = matching default = matching
[alias] [alias]
head = log -1 --show-signature --format=fuller head = log -1 --show-signature --format=fuller
adog = log --all --decorate --oneline --graph adog = log --all --decorate --oneline --graph
dog = log --decorate --oneline --graph dog = log --decorate --oneline --graph
[commit] identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
gpgSign = true [user]
useConfigOnly = true
[user "darkwiiplayer"]
# Public identity for Github & co.
name = DarkWiiPlayer
email = darkwiiplayer@hotmail.com