美文网首页
git repo 下载多个git仓库 gitlab

git repo 下载多个git仓库 gitlab

作者: proud2008 | 来源:发表于2018-07-01 12:09 被阅读35次

window10

一、git 配置

下载 https://gitforwindows.org/ 安装
1、打开Git Bash

image.png

或者


image.png

2、生成ssh证书
ssh-keygen -t rsa -C "your.email@example.com" -b 4096
按照提示生成证书
将publish证书 放到gitlab网站

3、配置域名
生成证书成功后 C:\Users\admin\.ssh应该会有对应的文件
手动添加

image.png
# GitLab.com server
Host 192.168.65.10 私钥的域名或ip
IdentityFile 私钥的路径

测试 是否可行
参考
http://192.168.65.10/help/ssh/README#working-with-non-default-ssh-key-pair-paths

二、repo配置

1、安装python 2.6~2.7版本,配置好环境变量
2、repo工具下载
git clone https://mirrors.ustc.edu.cn/aosp/tools/repo.git
repo 是基本python开发的
3、git cmd 管理员身份运行

image.png

python repo的路径 init -u git@XXX.git
repo的路径与要下载的路径一致

小脚本 repo.bat

python E:\repo\repo %*

添加到环境变量
repo.bat init -u git@XXX.git

repo.bat sync 同步代码
http://wiki.jikexueyuan.com/project/android-source/using-repo.html

相关文章

网友评论

      本文标题:git repo 下载多个git仓库 gitlab

      本文链接:https://www.haomeiwen.com/subject/qtpcuftx.html