当前位置:网站首页>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 ,
边栏推荐
- 用C语言开发NES游戏(CC65)04、完整的背景
- MMA8452Q几种模式的初始化实例
- SuperMap itablet license module division
- Analysis of new retail e-commerce o2o model
- Baidu map API adds information window circularly. The window only opens at the last window position and the window information content is the same solution
- Zadig v1.13.0 believes in the power of openness, and workflow connects all values
- Developing NES game (cc65) 07 and controller with C language
- 用C语言开发NES游戏(CC65)05、调色板
- 软件架构师必需要了解的 saas 架构设计?
- Kuzaobao: summary of Web3 encryption industry news on July 13
猜你喜欢

DIY system home page, your personalized needs PRO system to meet!

Redis implements distributed locks

leetcode:数组

Use json.stringify() to format data

新零售电商O2O模式解析

行业落地呈现新进展 | 2022 开放原子全球开源峰会 OpenAtom OpenHarmony 分论坛圆满召开

Come to tdengine Developer Conference and have an insight into the future trend of data technology development

软件架构师必需要了解的 saas 架构设计?

VS code更新后不在原来位置

Minimally invasive electrophysiology has passed the registration: a listed enterprise with annual revenue of 190million minimally invasive mass production
随机推荐
Some API interfaces purchased by Yiwu hope to bring you some help
Localization, low latency, green and low carbon: Alibaba cloud officially launched Fuzhou data center
Baidu map API adds information window circularly. The window only opens at the last window position and the window information content is the same solution
Merge table rows - three levels of for loop traversal data
Redis implements distributed locks
Anhui Jingzhun: Beidou satellite synchronous clock | Beidou synchronous clock | NTP network clock server
Why do enterprises need the ability of enterprise knowledge management?
20220728-Object类常用方法
Most of the interfaces of Tiktok are already available, and more interfaces are still open. Please look forward to it
微创电生理通过注册:年营收1.9亿 微创批量生产上市企业
揭秘界面控件DevExpress WinForms为何弃用受关注的MaskBox属性
First in the country! The two standards of "data product registration" formulated by insight technology and Shandong data were officially released
【一知半解】零值拷贝
04 pyechars 地理图表(示例代码+效果图)
开源汇智创未来 | 2022 开放原子全球开源峰会 OpenAtom openEuler 分论坛圆满召开
用C语言开发NES游戏(CC65)08、背景 碰撞
New progress in the implementation of the industry | the openatom openharmony sub forum of the 2022 open atom global open source summit was successfully held
让arduino支持nuvotom新唐
Communication example between upper computer and Mitsubishi fn2x
How to build knowledge management system in enterprises and institutions