2014-07-09 30 views
8

我試圖回購一個鏈接。 這些都是一些我想要執行的命令:清單丟失或無法讀取 - 請運行初始化

repo init \-u ssh://website.com:29418/repo 
repo sync 

我收到以下錯誤,當我做到這一點。

M-70NN:bin rda$ repo init \-u ssh://website.com:29418/repo 
error: in `init -u ssh://website.com:29418/cmx-ng-repo`: 

[Errno 2] No such file or directory: '/Users/rda/bin/.repo/manifests/.git/HEAD' 
error: manifest missing or unreadable -- please run init 

我不知道該怎麼辦。我按照上面的指導,安裝回購和其他的東西:

http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html 

我甚至試過

回購初始化

,但我得到了同樣的錯誤。我對GIT很陌生。不知道如何繼續。任何幫助,將不勝感激。

+2

您將無法在您的項目中使用.git目錄運行repo init。這裏有人有類似的問題:http://stackoverflow.com/questions/26091404/repo-about-git-head-error-manifest-missing-or-unreadable-please-run-init(也許?) – lostphilosopher

+0

讓我知道如果你需要進一步的幫助;) – intika

回答

0

解決方案:

嘗試下面的命令

repo init -u ssh://[email protected]:29418/repo 
repo sync 

的default.xml中應該存在回購鏈路上

代替

repo init \-u ssh://website.com:29418/repo 
repo sync 
0

除了在作爲單行發出命令時-u前面的反斜線錯誤之外,該錯誤可能是由於在其中一個父目錄中已隱藏.repo目錄導致的。即你不能嵌套回購樹。

相關問題