我無法使用GitHub應用程序和終端將Aquamacs24每晚構建分支與主計算機上的主分離。GitHub/Aquamacs24 - 克隆 - 分離主分支
主(1.58 GB)位於:
$ git clone git://github.com/davidswelt/aquamacs-emacs.git
的Aquamacs24支(182.5 MB)位於:
https://github.com/davidswelt/aquamacs-emacs/tree/aquamacs24
我已經在終端嘗試了幾種變化,但我沒有得到相同的文件,只是點擊上面提到的鏈接中的ZIP選項,並且結帳不起作用:
$ git clone --depth 3 git://github.com/davidswelt/aquamacs-emacs.git
$ cd aquamacs-emacs
$ git checkout aquamacs24
一旦將整個1.58 GB的主控下載到計算機,是否有辦法將分支與主控分開?或者,準確的終端命令將會下載與上面引用的github網頁上的ZIP圖標相同的東西?
有任何可能的情況下,你可以看看我的問題中的代碼,並告訴我哪一行是不正確的,並建議適用於Aquamacs24的另一行代碼?我會在幾分鐘後發佈錯誤消息。 。 。 。 – lawlist 2013-05-05 03:57:28
'git checkout aquamacs24':'錯誤:pathspec'aquamacs24'與git已知的任何文件都不匹配。 – lawlist 2013-05-05 04:03:20
我不打算克隆回購自己,但我的猜測是淺層克隆(即使用'--depth'參數)可能與後續檢出另一個分支不兼容。你可以嘗試在clone命令中加入'-b aquamacs24'。 – phils 2013-05-05 05:09:00