2016-06-07 54 views
1

我爲我的團隊項目使用bitbucket。 這個問題只出現在我刪除本地存儲庫後(因爲它不會讓我做出改變,但那是另一回事)。 但是當我第一次克隆時,它確實有效(我使用了HTTP URL)。git無法克隆:遠程端意外掛斷

目前,當我嘗試使用Visual Studio的團隊資源管理器圖形用戶界面(團隊資源管理器標籤克隆:連接 - >本地Git倉庫 - >克隆,並輸入git倉庫的HTTP URL,將出現以下消息:

Failed to clone the remote repository. See the Output window for more details.

輸出窗口說:

The underlying connection was closed: The connection was closed unexpectedly.


如果我進入SSH網址,而不是(再次使用相同的方法),它會彈出:

Invalid URI: The URI scheme is not valid.


如果我使用git bash和輸入git clone <HTTP URL>它打印:

error: RPC failed; curl 52 Empty reply from server
fatal: The remote end hung up unexpectedly


如果我使用git bash和輸入git clone <SSH URL>它打印:

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

回答

2

沒有更多信息,它看起來像你沒有通過身份驗證。 遵循到位桶維基指令在這裏,看看是否能解決問題

https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html

一定要使用正確的URL對應的接入方案了。

祝你好運。

+0

但是幾周前我確實使用了HTTP URL,因此沒有必要使用SSH URL。沒有其他辦法了?我可以提供哪些信息,以幫助澄清我的情況? –

相關問題