i want to use 2 diferent username on same server gitlab.com this is my actual config file :
Host gitlab.com
HostName gitlab.com
User username1
IdentityFile ~/.ssh/id_rsa.username1
IdentitiesOnly yes
Host gitlab.com
HostName gitlab.com
User username2
IdentityFile ~/.ssh/id_rsa.username2
IdentitiesOnly yes
if i push code in first account, working if i try to push code in second account not working (because use key of first account) working only for first position account on config file.
how i can use both account without this problems ?