GIT Bash asking for my user credentials when performing a push using SSH -
i have created , implemented git project on codaset website. using ssh communicate between codaset , local repository. when push git bash, git bash asks me user name credentials. although, git bash performs push successfully, tedious having enter user credentials every time perform push.
i have checked out many blogs , suggestions fix problem, no avail. also, have tried use putty. questions are:
- has 1 come across problem , fixed it?
- or, can turn on debugging @ least identify precise reason(s) why git bash asking user credentials?
in terminal type:
git config -l
this bring repo's config information. @ row remote.origin.url
. you're describing should be: https://github.com/username/project.git
. mean's it's using http protocol instead of ssh! had problem :) easy fix though!
just execute in terminal:
git config remote.origin.url git@github.com:username/project.git
should take care of things!
Comments
Post a Comment