2017-03-01 146 views
2

所以你可以幫我嗎?我不能克隆的Git倉庫:我無法克隆git倉庫.../info/refs無效

**我的命令**

§ git clone https://github.com/micaelandre/micaelandre.github.io.git 

,我可以看到這個錯誤:

GIT輸出

fatal error: https://github.com/micaelandre/micaelandre.github.io.git/info/refs not valid: is this a git repository? 

回答

1

您可以克隆與HTTPSSSH存儲庫,您應該在您的本地&遠程配置SSH使用SSH

git clone https://github.com/micaelandre/micaelandre.github.io.git 

,或者如果你啓用SSH

git clone [email protected]:micaelandre/micaelandre.github.io.git 
+0

所以,我的命令是git的克隆的https: // GITH ub.com/micaelandre/micaelandre.github.io.git和我的輸出是:致命的錯誤:https://github.com/micaelandre/micaelandre.github.io.git/info/refs無效:這是一個git存儲庫? –

+0

您是否在Github中首先創建了存儲庫?或者在本地創建存儲庫? – DilumN

+0

我已經在github中創建倉庫,你可以檢查這個網址:https://github.com/micaelandre/micaelandre.github.io –

0

我的問題是git的客戶是太舊

我使用詹金斯+ git的SCM插件克隆我的git倉庫,我得到了錯誤

stderr: error: The requested URL returned error: 403 Forbidden while accessing https://github.com/owner/repo.git/info/refs

我打開鏈接和我的錯誤,我看到的消息:

Please upgrade your git client. GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days

我的CentOS 6.5,當我試圖更新我的git客戶端我從百勝庫只有git的客戶端版本1.7.1

了所以爲了獲得最新的git客戶端(對我來說是2.4.4),我不得不使用這個guide

*有在互聯網上許多導遊對這個

,比我能克隆我的git回購成功