我想在github上使用Jekyll,但似乎無法推動更新文件。我是新來的git,並沒有問題推到回購的我做,但試圖推到我的網站時,我不斷收到這些錯誤:不能推到github網站
你不能推到
git://github.com/anthonybrown/anthonybrown.github.com.git
使用[email protected]:anthonybrown/anthonybrown.github.com.git
我一直在嘗試這樣做3天,現在有一個頁面。
我想在github上使用Jekyll,但似乎無法推動更新文件。我是新來的git,並沒有問題推到回購的我做,但試圖推到我的網站時,我不斷收到這些錯誤:不能推到github網站
你不能推到
git://github.com/anthonybrown/anthonybrown.github.com.git
使用[email protected]:anthonybrown/anthonybrown.github.com.git
我一直在嘗試這樣做3天,現在有一個頁面。
您需要將您的git-remote的URL更改爲正確的URL。
更改URL的命令是這樣的(假設遠程名爲origin
):
git remote set-url origin [email protected]:anthonybrown/anthonybrown.github.com.git
如果遙控器有不同的名稱,你不知道吧,看看在git remote
輸出。
當然,你也可以簡單地編輯.git/config
,並用正確的URL替換舊的git://...
,但是因爲有這樣的命令,所以沒有理由這麼做。
男人不敢相信我沒有看到!,謝謝 –
還有類似的問題:http://stackoverflow.com/questions/7548661 嘗試應用第一個答案。 – sebast26