致命:无法查找 bitbucket.org

fatal: Unable to look up bitbucket.org

我是 git 的新人。我想使用 bitbucket.org。我已经在 bitbucket 和 android studio 中设置了一切。现在,当我尝试通过键入此命令 git push -u origin master 来推送我的项目时,它会显示此消息 fatal: Unable to look up bitbucket.org (port tushar_shah) (The specified class was not found. ) 我该如何解决这个问题?我在 google 中搜索过这个。但是找不到有用的东西。

检查存储库的语法 url

git remote -v

注意 url 中使用的 'port' (似乎您已将用户名用作端口的值)结果可能类似于

https://my-server:1234/repos/my-project.git

通常情况下,存储库提供程序使用默认端口,在这种情况下您无需指定端口。

改变url

git remote set-url origin https://my-server/repos/my-project.git

你的情况

git remote set-url origin git://bitbucket.org/converter.git

有关 git 中协议和 url 的详细信息,请参阅 https://git-scm.com/book/ch4-1.html

这是我必须执行的步骤:

git remote set-url origin https://bitbucket.org/tushar_shah/*****.git

git config --global --unset http.proxy

之后一切正常。