Lot of steps to be be able to add a comment! Anyway, if you read this post and git is not using the correct information, maybe that's because you can't explicit set configurations after the [includeIf]. You must include a file instead.
Only after reading the git-config documentation, and noticing that they talk a lot about a path property, I decided to move the sshCommand to another file. And then it finally worked correctly. What I currently have:
Lot of steps to be be able to add a comment! Anyway, if you read this post and git is not using the correct information, maybe that's because you can't explicit set configurations after the
[includeIf]
. You must include a file instead.Only after reading the git-config documentation, and noticing that they talk a lot about a
path
property, I decided to move thesshCommand
to another file. And then it finally worked correctly. What I currently have:Arnelle, thanks for this post. It's way better then using custom hosts!