When I try to push the code to github, I need to submit username and password every time. I keep on asking for username and password while pushing the code.
I came to see its due to ssh.
I have checked my remote config of my git repo and came to see it was with https
> git remote –v
Now I removed the remote repo which is with https as below
> git remote rm origin
Now I added the remote repo with git as below
> git remote add origin git@github.com:umamahesh/sampleapp.git
Now authentication happens without ssh and with keys. You can push the code without username and password.
Thank You,
Uma Mahesh.
I came to see its due to ssh.
I have checked my remote config of my git repo and came to see it was with https
> git remote –v
Now I removed the remote repo which is with https as below
> git remote rm origin
Now I added the remote repo with git as below
> git remote add origin git@github.com:umamahesh/sampleapp.git
Now authentication happens without ssh and with keys. You can push the code without username and password.
Thank You,
Uma Mahesh.
No comments:
Post a Comment