Put in your .git/config
[remote "origin"]
...
url = ssh://git@gitolite-as-alice/my-repo
...
Even if the user and host are the same, they can still be distinguished in ~/.ssh/config
. For example, if your configuration looks like this: