Repo的Windows版本: https://github.com/esrlabs/git-repo 链接地址:GitHub - esrlabs/git-repo: repo - The multiple ://raw.githubusercontent.com/esrlabs/git-repo/stable/repo.cmd > ~/bin/repo.cmd chmod a+rx ~/bin/repo 一定能够成功的办法 1.打开github上的git-repo仓库,把仓库代码clone或者zip包下载下来。 https://github.com/esrlabs/git-repo 把repo和repo.cmd复制一份放置在C:\Users\Administrator\bin 注意环境不同可能不一定是这个路径 把下载的git-repo仓库内的源码放在repo文件夹下。 或者省略这步,直接把下载的 git-repo仓库放到git bash的~/bin下应该也可以。 3.下载Android 源码。
2.0.0_ga.xml repo sync 源码下载过程遇到的错误1 : repo init 提示 fatal: Cannot get https://gerrit.googlesource.com/git-repo /clone.bundle fatal: error [Errno 101] Network is unreachable fatal: cloning the git-repo repository failed, will remove '.repo/repo' // 解决方案: 先单独克隆repo,然后将git-repo里面的repo文件复制到bin目录,在同步源码的工作目录新建.repo 文件夹,把git-repo重命名为repo复制到.repo目录下: git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo 参考解决 :Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle 源码下载过程遇到的错误2 : ImportError: cannot import
Repo官网:git-repo 安装 Repo 工具 可以用包管理器进行安装: # Debian/Ubuntu. $ sudo apt-get install repo # Gentoo. $ sudo repo 国内镜像源安装: $ mkdir -p ~/.bin $ PATH="${HOME}/.bin:${PATH}" $ curl https://mirrors.bfsu.edu.cn/git/git-repo 将如下内容复制到你的~/.bashrc 里 $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc global credential.helper store 常见问题 卡在Downloading Repo source from https://gerrit.googlesource.com/git-repo
Repo官网:git-repo 安装 Repo 工具 可以用包管理器进行安装: # Debian/Ubuntu. $ sudo apt-get install repo # Gentoo. $ sudo repo 国内镜像源安装: $ mkdir -p ~/.bin $ PATH="${HOME}/.bin:${PATH}" $ curl https://mirrors.bfsu.edu.cn/git/git-repo 将如下内容复制到你的~/.bashrc 里 $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc global credential.helper store 常见问题 卡在Downloading Repo source from https://gerrit.googlesource.com/git-repo
Repo官网:git-repo 安装 Repo 工具 可以用包管理器进行安装: # Debian/Ubuntu. $ sudo apt-get install repo # Gentoo. $ sudo repo 国内镜像源安装: $ mkdir -p ~/.bin $ PATH="${HOME}/.bin:${PATH}" $ curl https://mirrors.bfsu.edu.cn/git/git-repo 将如下内容复制到你的~/.bashrc 里 $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc global credential.helper store 常见问题 卡在Downloading Repo source from https://gerrit.googlesource.com/git-repo
Repo官网:git-repo 安装 Repo 工具 可以用包管理器进行安装: # Debian/Ubuntu. $ sudo apt-get install repo # Gentoo. $ sudo repo 国内镜像源安装: $ mkdir -p ~/.bin $ PATH="${HOME}/.bin:${PATH}" $ curl https://mirrors.bfsu.edu.cn/git/git-repo 将如下内容复制到你的~/.bashrc 里 $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc global credential.helper store 常见问题 卡在Downloading Repo source from https://gerrit.googlesource.com/git-repo
imx-android-10.0.0_2.5.0.tar.gz 到一个文件夹里并解压,进入: 2.1 获取repo git clone https://mirrors.tuna.tsinghua.edu.cn/git/git-repo 修改 repo 里的内容为下面 REPO_URL = 'https://mirrors.bfsu.edu.cn/git/git-repo' 然后添加repo到环境变量 export PATH=$PATH :git-repo的绝对路径 2.2 同步远程代码 执行下面命令 source imx_android_setup.sh 肯定会报错,因为NXP默认的是谷歌官方的地址,要终止掉命令,我们使用的是imx-android
template: checkout - - name: build-push-docker template: build-push-docker arguments: artifacts: - name: git-repo - name: checkout inputs: artifacts: - name: git-repo path: /src git: repo: "{{workflow.parameters.repo - name: build-push-docker inputs: artifacts: - name: git-repo path: /src parameters: - name: image-tag - name: run-tests inputs: artifacts: - name: git-repo path: /src parameters: - name: image-tag - name: deploy-kubernetes inputs: artifacts: - name: git-repo path: /src parameters: - name
$PATH 安装curl库: sudo apt-get install curl 下载repo并设置权限: curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo 如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的~/.bashrc里: export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
gedit修改: sudo gedit /usr/bin/repo 将REPO_URL的值修改为REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo 如果仍不起作用: sudo gedit ~/bashrc 在最后一行添加export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
/repo > ~/bin/repo $ chmod a+x ~/bin/repo 编辑~/bin/repo文件,将REPO_URL由 https://gerrit.googlesource.com/git-repo 改为 https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' 下载Android源代码 # 下载源码包 $ wget https://mirrors.tuna.tsinghua.edu.cn
repo文件 下载的repo文件,在调试终端输出如下命令: rice@rice:~/xr806$ git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo 修改git-repo下载到的repo文件REPO_URL地址(https://mirrors.ustc.edu.cn/aosp/git-repo),操作如下所示: 在调试终端输出如下命令: rice @rice:~/xr806$ vim git-repo/repo 修改位置如下图: 拷贝repo文件到/usr/bin/,便可以执行repo命令,在调试终端输出如下命令: rice@rice:~/xr806 /$ sudo cp git-repo/repo /usr/bin/ 下载系统源码 创建目录,在调试终端输出如下命令: rice@rice:~/xr806$ mkdir code rice@rice:
config --list 下载repo mkdir ~/bin sudo apt install curl curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo manifest -b android-10.0.0_r25 初始化仓库时会报如下错误 Downloading Repo source from https://gerrit.googlesource.com/git-repo fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno 110] Connection timed out 在~/.bashrc文件下添加如下代码即可 export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
准备工作: git Python 3 获取代码,切换到清华源 cd ~ mkdir bin/; cd bin/ curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo repo chmod +x repo export PATH=$PATH:~/bin/ export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
下载aosp时,执行 repo init遇到如下错误: fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
blog.csdn.net/weixin_42514606/article/details/100927076 现象 fatal: Cannot get https://gerrit.googlesource.com/git-repo
mirrors.tuna.tsinghua.edu.cn/help/AOSP/ 2.Git Repo 镜像使用帮助 https://mirrors.tuna.tsinghua.edu.cn/help/git-repo 建议没有访问外国网站条件的用清华大学的镜像和清华大学的git.repo,并将~/bin/repo中的 REPO_URL改成https://gerrit-google.tuna.tsinghua.edu.cn/git-repo
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo 3.
ls`echo "curDirCon = ${curDir2}"# 输出:=======变量======= string string 123 123 123 curDir = /Users/aron/git-repo /syntax.sh paramsCount=2 目录存在 /Users/aron/git-repo/ShellLearning/helloshell dir = /Users/aron/git-repo echo "err:不是一个目录" fi}read_implement_file_recursively $(pwd) 输出: =======文件目录======= 处理文件 /Users/aron/git-repo /ShellLearning/helloshell/data 处理目录 /Users/aron/git-repo/ShellLearning/helloshell/subfolder 处理文件 /Users /aron/git-repo/ShellLearning/helloshell/subfolder/data2 处理文件 /Users/aron/git-repo/ShellLearning/helloshell
使用以下命令对远程仓库进行操作: 添加远程仓库并命名为origin:git remote add origin <git-repo> 修改远程仓库:git remote set-url origin < git-repo 删除远程仓库:git remote rm origin 列出所有的远程仓库:git remote -v 然后就可以推送到远程仓库了,其中origin是远程仓库,master是分支: 推送到远程仓库并建立追踪关系