Conditionally setting your gitconfig ↦
Very cool Marcus, very cool!
…let’s say that my code lives in
$HOME/work
and my personal code lives in$HOME/projects
. You can do something like this
[user]
email = user@example.com
name = User
signingkey = ABC123
[commit]
gpgSign = true
[includeIf "gitdir:~/work/"]
path = ~/.work.gitconfig
Discussion
Sign in or Join to comment or subscribe