gpt4 book ai didi

android - repo :找不到命令?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:59:06 26 4
gpt4 key购买 nike

我是 git 和 repo 的新手。我在窗口 7,所以我使用 cygwin。我已经从 cygwin 安装程序安装了 git。之后,我尝试在 cygwin 中使用以下命令进行 repo 。

$ repo init-u git://android.git.kernel.org/platform/manifest.git 

我收到这样的错误:

bash: repo: command not found

我想我需要为 repo 设置 cygwin。接下来我需要做什么才能获得 repo 协议(protocol)?

最佳答案

案例一:还没有安装google repo?

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

必要时使用以下校验和:

1.25版本是d06f33115aea44e583c8669375b35aad397176a411de3461897444d247b6c220

对于版本 1.26,它是 0cf5f52bcafb8e1d3ba0271b087312f6117b824af272bedd4ee969d52363a86b

案例 2:已经安装了 google repo,仍然想知道哪里出了问题?

添加PATH=~/bin:$PATH 到文件末尾 ~/.bashrc然后运行source ~/.bashrc

关于android - repo :找不到命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3682083/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com