推送到git存储库时无法查找https致命错误

时间:2014-06-28 17:23:45

标签: git bash shell

在git bash中,我尝试推送到远程存储库时遇到致命错误。

fatal:unable to look up https (port <none>)  (here with some unrecognized character %#^%)

在git shell中,除了上面列出的致命错误外,它还会发出另一个警告

waring: Your console font probably doesn't support unicoode. if you experience strange characters in the output, consider switching to a Truetype font such as Lucida Console

2 个答案:

答案 0 :(得分:1)

确保网址的语法实际上是https语法(如this answer中所示):

git remote -v

应该是:

https://servername<:port>/repo

答案 1 :(得分:0)

我遇到了同样的错误,并将https更改为ssh解决了我的问题