You're Robin
and you want to commit as Batman
.
[user]
email = [email protected]
name = robin
[core]
sshCommand = ssh -i ~/.ssh/robin_pk
[includeIf "gitdir:/home/user/BatmanSrc/**"]
path = ~/.gitconfig.batman
[user]
email = [email protected]
name = batman
[core]
sshCommand = ssh -i ~/.ssh/batman_pk
Any git commands inside ~/BatmanSrc/
will make it look like you're Batman.
https://git-scm.com/docs/git-config#Documentation/git-config.txt-codegitdircode