我有一个带有HTTPS访问的远程仓库。
git status
仅列出一个条目:master。
git remote -v
列出了两个指向相同地址的条目:一个用于fetch,一个用于push。
但是当我执行git remote show origin
或其他操作(如fetch
),我会得到:
error: while accessing https:...
fatal: HTTP request failed
我在代理后面,但由于我的 .gitconfig 中设置了 sslVerify = no 并且克隆也成功了,我不认为问题来自这里。但是......我的操作系统(CentOS)已经重新安装了。
git remote -v
命令打印出来的 origin 的 url 前六个字符吗?特别是协议类型,http、https、ssh 或 git? - First Zero