I encountered an issue when pushing code from AndroidStudio to github. By default, AndroidStudio picked id_rsa identity file for git operations. However, I had created a different identify file called id_github for my github ssh key. I was able to resolve the problem by creating a ~/.ssh/config file with following content;
#github account
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_github
I was then able to push code to github from AndroidStudio.
#github account
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_github
I was then able to push code to github from AndroidStudio.
Comments