How to change your git repository from HTTPs to SSH once cloned to avoid login and password prompt

If you are prompted for login and password every time you try git push your commit this means that you have cloned your repository using HTTPS protocol instead of SSH.

If you have your SSH set up as per github help page and all is working as per

you need to enter the following command to change your cloned repository on your PC from https to SSH

git remote set-url origin

once this is done you can type

git push

and this should send a commit to your git hub account without asking for login and password.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s