1、git remote -v --查看当前是ssh 还是https方式连接
2、从ssh切换至https
git remote set-url origin https://xxxx.git(复制仓库https连接)
3、从https方式切换至ssh
git remote set-url origin git@/xxxxx.git(复制仓库ssh连接)
标签:git,remote,切换,SSH,https,连接,ssh From: https://www.cnblogs.com/wy5132/p/17417780.html