2016-11-22 75 views
0

我們使用的是Github Enterprise,每個用戶都創建了自己的個人訪問令牌,它在git clone中使用。Eclipse Neon和Git克隆不起作用

但是在Eclipse Neon(macOS)中,我嘗試添加手動克隆的存儲庫,但未添加到Eclipse Git透視圖中。

於是,我就使用Eclipse霓虹燈&它例如:It, 當我克隆混帳手動我用這個重新克隆回購:

https://<USERNAME>:<TOKEN>@github.ibm.com/<ORGANIZATION>/<REPOSITORY> 

當我使用Eclipse的克隆Git的精靈一樣網址: enter image description here ,在下一個按鈕點擊後,我有這個錯誤: enter image description here

任何想法可能是錯的什麼?

UPDATE:

我也嘗試訪問使用SSH密鑰,這也工作在控制檯罰款,但是Eclipse仍然發出後,在輸入網址: enter image description here

同一窗口圖2)

回答

0

嘗試從Eclipse Git中的URI字段中刪除標記。您傳遞的是身份驗證參數,因此您不需要在URI中傳遞令牌。應該是這個樣子:

https://github.com/username/repo.git 
+0

其實我沒有,但我有同樣的問題,請參見更新問題 –

+0

是Eclipse在GitHub上的「授權應用程序」下的上市? –

+0

[鏈接](https://help.github.com/articles/keeping-your-ssh-keys-and-application-access-tokens-safe/#reviewing-your-authorized-applications-oauth) –