Git:清单丢失或不可读

Git:清单丢失或不可读,git,github,repository,Git,Github,Repository,我正在尝试回购一个链接以下是我想要执行的一些命令: repo init \-u ssh://website.com:29418/repo repo sync http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html 执行此操作时会出现以下错误。 M-70NN:bin rda$ repo init \-u ssh://website.com:29418/repo error: in `in

我正在尝试回购一个链接以下是我想要执行的一些命令:

repo init \-u ssh://website.com:29418/repo
repo sync
http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html
执行此操作时会出现以下错误。

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
我不知道该怎么办。我已按照上述指南安装了回购和其他内容:

repo init \-u ssh://website.com:29418/repo
repo sync
http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html
我甚至试过

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
repo init

但我也犯了同样的错误。我对GIT很陌生。我不知道怎么继续。任何帮助都将不胜感激。

解决方案:

repo init \-u ssh://website.com:29418/repo
repo sync
http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html
请尝试以下命令

repo init -u ssh://user@website.com:29418/repo
repo sync
repo链接上应该有default.xml

而不是

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

如果以单行形式发出命令,除了
-u
前面的反斜杠错误外,该错误可能是由于父目录之一中已有一个隐藏的
.repo
目录引起的。也就是说,您不能有嵌套的repo树。

您将无法在项目中已经有.git目录的情况下运行repo init。这里有人有类似的问题:(也许?)如果你需要进一步的帮助,请告诉我;)