If you work with multiple git users, and need to use different ssh keys, the best option is to not set global configurations at all. This way you will always be warned when you haven't set your local git config, and this avoids the risk of using the wrong user when committing and pushing.
Add the following line under
sshCommand = "ssh -i ~/.ssh/<your ssh key file>"
Add the following lines under
email = <your email>
name = <your name>
git config user.name to test what the actual settings are
This is often a problem with the configured ssh key not being loaded.
# Open bash with ssh-agent active exec ssh-agent bash # Add ssh key to agent ssh-add ~/.ssh/<key>
git remote add origin firstname.lastname@example.org:dwrolvink/obsidian-html.git