2016-08-05 45 views
1

TFS當我嘗試克隆TFS託管git倉庫http://tfstta.com:8080/tfs/DefaultCollection/_git/SampleTFSGit從我的Linux機器時jgit錯誤,我面對的認證不支持錯誤:「認證不支持」:試圖克隆託管git倉庫

org.eclipse.jgit.api.errors.TransportException: http://:@tfstta.int.thomson.com:8080/tfs/DefaultCollection/_git/SampleTFSGit.git: authentication not supported*

啓用基本身份驗證/備用憑據似乎不是一種選擇。

有人能請告訴我一個解決這個問題的方法嗎?我會很感激!

+0

你的命令是怎樣的? –

+0

我將url,id,password和一些其他參數發送到內部調用'git clone'命令的linux腳本。雖然這對github託管的回購站來說絕對正常,但tfs託管的git回購給我這個錯誤 –

回答

0

當您使用下面的命令時,系統會提示您輸入用戶名和密碼。

git-clone http://:@tfstta.int.thomson.com:8080/tfs/DefaultCollection/_git/SampleTFSGit 

在我的測試中,發送命令時,系統會提示您Windows安全。不需要使用基本身份驗證/備用憑據,只需鍵入domaine \ username並且密碼將連接到TFS。

0

我建議您將您的TFS服務器升級到最新的Update 3,然後將SSH Authentication用於Git存儲庫。

SSH Support for Git Repos

With TFS 2015 Update 3, you can now connect to any Team Foundation Server Git repo using an SSH key. This is very helpful if you develop on Linux or Mac. Just upload your personal SSH key and you're ready to go.

0

我已經遇到了一個新的PC(由其他人配置)這個問題。修復了重新安裝JDK和運行eclipse的錯誤。