当前位置:网站首页>Multiple items on a computer share a public-private key pair to pull the Gerrit server code
Multiple items on a computer share a public-private key pair to pull the Gerrit server code
2022-07-28 12:42:00 【yi_ tianchou】
gerrit Pull the server android Code
1、 Have gone through ssh-key In the local .ssh Under the folder Generate Public private key pair
2、 land gerrit The server
3、 Get into gerrit Next etc Catalog
cd /home/gerrit/ Project name /etc
perform sudo htpasswd gerrit.passwd xxx(gerrit Login username ) --- Add user name to gerrit.passwd in cat,vi Wait for instructions to view the content
New password:( Enter login gerrit Platform password )
Re-type new password:( Enter login again gerrit Platform password ) The two times are consistent , For later login gerrit web The page is used to register email and upload public key
4、 land gerrit web page Use just passed htpasswd Instruction to add user name and password

Log in after entering

Click on the top right corner Numbers , A page will pop up , stay When the mailbox is not registered, a string of numbers is displayed
Click on setting, A new page appears , And then click register New Email

5、 Confirm in the email mail , Under the same browser Access the connection in the message ,( Pay attention to the same browser , Otherwise, there is no cookie , You will not be able to register successfully ), The successful page will jump to gerrit page , Show User name and mailbox . Pictured

6、 Upload the new one on your computer Public key , Default in home/ user /.ssh/ Default filename id_rsa ( Private key ) id_rsa.pub( Public key )
open id_rsa.pub file , Copy all the contents of the file .

thus stay gerrit Add Public and private key completion ,
7、 On your own computer New file plus , Used to pull code
Command line cd To Newly created folder
Instructions :ssh -p 39417 user1@192.168.1.30 gerrit ls-projects Verify whether the connection to the server is normal
Instructions :git clone ssh://user1@192.168.1.30:39417/repo Cloning Services repo
( Or copy it from another place , Put it in newly build .repo Folder take repo Check in the folder )
Instructions :./repo/repo init --repo-url ssh://user1@192.168.30:39417/repo -u ssh://user1@192.168.30:39147/rk/platform/manifest -b android-7.0 -m rk3288_tablet_nougat_release.xml
You need to fill in the user name user1 Fill in your own email
If the above steps are correct
./repo/repo sync Start pulling the code
android 7.1 The code is about 60 many G,80 More than 10000 documents ,repo Probably need 100G A little more , So pay attention to disk space .
After the first code can be pulled , Empathy Add the local public-private key pair to project 2 , Follow the same steps to download the code of project 2
Multiple projects can be shared A public-private key pair ,
边栏推荐
- STM32F103 several special pins are used as ordinary io. Precautions and data loss of backup register 1,2
- Deployment之滚动更新策略。
- 20220728-Object类常用方法
- Developing NES game (cc65) 03 and VRAM buffer with C language
- 设计一个线程池
- Foam exploded three times, why did Luo Yonghao put all his eggs in one basket to do ar?
- Multi Chain and multi currency wallet system development cross chain technology
- If you don't roll the golden nine and silver ten, it's too late
- VS1003调试例程
- What SaaS architecture design does a software architect need to know?
猜你喜欢

leetcode:数组

Industry, University, research and application jointly build an open source talent ecosystem | the 2022 open atom global open source summit education sub forum was successfully held

If you don't roll the golden nine and silver ten, it's too late

奥浦迈生物通过注册:半年营收1.47亿 国寿成达与达晨是股东

Hongjiu fruit passed the hearing: five month operating profit of 900million Ali and China agricultural reclamation are shareholders

Distributed timer

西门子对接Leuze BPS_304i 笔记

一台电脑上 多个项目公用一个 公私钥对拉取gerrit服务器代码

03 pyechars 直角坐标系图表(示例代码+效果图)

Analysys analysis: focus on users, improve the user experience of mobile banking, and help the growth of user value
随机推荐
Use json.stringify() to format data
leetcode:数组
Yan Ji lost Beijing again, and more than half of the stores in the country were closed
卸载 Navicat:正版 MySQL 官方客户端,真香!
Foam exploded three times, why did Luo Yonghao put all his eggs in one basket to do ar?
The openatom openharmony sub forum was successfully held, and ecological and industrial development entered a new journey
Deployment之滚动更新策略。
软件架构师必需要了解的 saas 架构设计?
Developing NES games with C language (cc65) 06. Sprites
What SaaS architecture design does a software architect need to know?
[apue] 文件中的空洞
合并表格行---三层for循环遍历数据
十三. 实战——常用依赖的作用
Markdown concise grammar manual
用C语言开发NES游戏(CC65)05、调色板
05 pyechars 基本图表(示例代码+效果图)
First in the country! The two standards of "data product registration" formulated by insight technology and Shandong data were officially released
通过Jenkins 拉取服务器代码 权限不足问题及其他注意事项
Kafaka丢消息吗
MarkDown简明语法手册