我尝试了这个命令:
git push -u origin main
但我收到此错误:
fatal: Invalid proxy URL 'https:/github.com': only SOCKS proxies support paths
fatal: remote helper 'https' aborted session
我该如何修复它
我尝试了这个命令:
git push -u origin main
但我收到此错误:
fatal: Invalid proxy URL 'https:/github.com': only SOCKS proxies support paths
fatal: remote helper 'https' aborted session
我该如何修复它
看起来这可能是您在设置遥控器时出现的拼写错误——您的 URL后面
origin
只有一个。/
https:
运行
git remote show origin
。如果Fetch URL
and/orPull URL
也只有一个斜线,请编辑.git/config
以添加缺失的/
,然后查看是否可以解决问题。