Configure git for per-project identities
This commit is contained in:
parent
104c845ebb
commit
ee8f0ac2fe
1 changed files with 12 additions and 4 deletions
12
gitconfig
12
gitconfig
|
@ -1,6 +1,9 @@
|
|||
# vim: set filetype=gitconfig :miv #
|
||||
[core]
|
||||
editor = vim -f
|
||||
[commit]
|
||||
# Sign commits by default
|
||||
gpgSign = true
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
guitool = gvimdiff
|
||||
|
@ -15,5 +18,10 @@
|
|||
head = log -1 --show-signature --format=fuller
|
||||
adog = log --all --decorate --oneline --graph
|
||||
dog = log --decorate --oneline --graph
|
||||
[commit]
|
||||
gpgSign = true
|
||||
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
|
||||
[user]
|
||||
useConfigOnly = true
|
||||
[user "darkwiiplayer"]
|
||||
# Public identity for Github & co.
|
||||
name = DarkWiiPlayer
|
||||
email = darkwiiplayer@hotmail.com
|
||||
|
|
Loading…
Reference in a new issue