git 报错 protocol ‘https‘ is not supported解决

报错原因:选择不了其他分支代码,甚至都看不到其他分支,我这边解决了两次报错,情况如下:

第一种报错:

idea中刷新分支报错如下:

Fetch Failed protocol ''https' is not supported

话不多说,直接上解决方案:

 1:可以直接在idea命令窗中执行:git remote set-url origin 你的url

2.然后继续执行git config --show-origin --get remote.origin.url

 总结:

第二种报错:

执行成功后,可能还会有其他报错,例如:Can‘t update dev_zgd has no tracked branch

git 报错 protocol ‘https‘ is not supported解决_第1张图片

解决方案:

   选择Git-->Rebase,选择master即可(本地删除其他分支)

git 报错 protocol ‘https‘ is not supported解决_第2张图片

git 报错 protocol ‘https‘ is not supported解决_第3张图片

 解决完成,所有分支都可以重新拉了。

 

 

你可能感兴趣的:(git)