如何在GitBash中禁用SSH并改为使用HTTPS

lin*_*ncx 6 git ssh https

我在连接到Bitbucket的时候正在使用SSH,而且Bitbucket使用的端口22突然被阻止,所以我决定使用HTTPS选项.如何在git bash中禁用ssh并使用HTTPS代替?我已经重新安装了git,但它仍然使用SSH/Putty进行连接.

谢谢.

Cha*_*esB 12

它不是在git设置,而是在您的存储库设置中.

您需要更改远程存储库的地址并指定https://协议

git remote set-url origin <repo-https-url>
Run Code Online (Sandbox Code Playgroud)

但是使用https时,您必须在每次推/拉操作时键入密码,但是在GitHub上使用https://时是否有办法跳过密码输入?.