Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable SSH in GitBash and use HTTPS instead

Tags:

git

ssh

https

I'm using SSH at the moment when connecting to Bitbucket and suddenly the port 22 where Bitbucket uses has been blocked so I decided to use HTTPS option instead. How to disable the ssh in git bash and use HTTPS instead? I already reinstalled git but it still it uses SSH/Putty to connect.

Thanks.

like image 336
lincx Avatar asked Mar 04 '13 00:03

lincx


1 Answers

It's not at git settings, but in your repository settings.

You need to change the address of your remote repository and specify the https:// protocol

git remote set-url origin <repo-https-url>

However with https you'll have to type your password on each push/pull operation, but see Is there a way to skip password typing when using https:// on GitHub?.

like image 134
CharlesB Avatar answered Nov 14 '22 23:11

CharlesB