alibaba / git-repo-go

git-repo is a command-line tool for centralized workflow, can work with Gerrit, AGit-Flow compatible servers. It is written in Golang, and it can be installed easily without further dependency. It provides an easy-to-use solution for multiple repositories which is introduced by Android repo first, and it can also work with a single repository.
https://git-repo.info/
Apache License 2.0
262 stars 60 forks source link

FATAL: cannot find repodir or git: 'abandon' is not a git command. See 'git --help'. #50

Open StringKe opened 2 years ago

StringKe commented 2 years ago

CleanShot 2022-05-23 at 16 53 41

命令提示无法找到 repodir 或者无法找到 子命令

jiangxin commented 2 years ago

git-repo 需要对工作区初始化,即执行 git-repo init -u <url-of-manfest.git>,然后才能执行的。

即 git-repo 从当前目录向上逐级查询是否有 .repo 目录,以确定 git-repo 的工作区目录。找不到 .repo 目录会报这个错。