2015-08-13 33 views
0

我是新的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.)我該如何解決這個問題?我在谷歌搜索了這個。但找不到有用的東西。致命:無法查找bitbucket.org

+0

可能重複的[無法查找https推送到git存儲庫時致命錯誤](http://stackoverflow.com/questions/24469248/unable-to-look-up-https-fatal-error-when-push -to-git-repository) – CinCout

回答

0

檢查你的資料庫網址

git remote -v 

講究的語法在URL中使用的「端口」(看來你已經用你的用戶名作爲端口值),其結果可能是類似

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

+0

工作。但需要從http://stackoverflow.com/questions/10333836/git-clone-cant-resolve-proxy獲得一些幫助。謝謝 –

0

這是我必須做的步驟:

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

git config --global --unset http.proxy

之後,它工作正常。

相關問題