您的位置:首页 > 汽车 > 新车 > 深圳疫情龙岗区_郑州外贸建站_百度浏览器下载安装_cnzz统计

深圳疫情龙岗区_郑州外贸建站_百度浏览器下载安装_cnzz统计

2024/10/22 13:23:29 来源:https://blog.csdn.net/tiger9991/article/details/143111700  浏览:    关键词:深圳疫情龙岗区_郑州外贸建站_百度浏览器下载安装_cnzz统计
深圳疫情龙岗区_郑州外贸建站_百度浏览器下载安装_cnzz统计

GIT + Gerrit + SourceTree installation guid document

1, Setup and config GIT

1.1 Setup

1.2 Config

Click bellow icon

Config name and email address for Git and verify the configuration.

git config --global user.name CDSID

git config --global user.email CDSID @company.com

2 Using Gerrit

Refer to http://172.30.181.119:8090/display/SW/Developer+Training+Using+Gerrit

Setting up account with Gerrit

Gerrit supports LDAP authentication. Your domain account can be used as a gerrit account, Please log into Gerrit http://172.29.169.30:8091/ with your domain account first, then the administrator assigns project permissions for you.

Note: Use Google Chrome to open the above link

If you get the permission, you can check the repositories like bellow shows.

3 make connection between Git and Gerrit

3.1 Generate ssh key for authentication, open Git GUI, Right click desktop

Done for SSH key generated.

3.2 Add SSH key to Gerrit

Click username and choose item “Settings”

Click SSH Keys, and cope the SSH key content to bellow edit box and click “ADD NEW SSH KEY”

3.3 Create config file

For windows user  (change the usonw018 to your own CDSID)

Go to this folder:  C:\Users\usonw018\.ssh

Add a file named:  config

Modify the following (change the usonw018 to your own CDSID.), and copy it to the file “config”

Note: case-sensitive

Host 172.29.169.30

hostname 172.29.169.30

user usonw018

port 29418

Verify the connection between Git and Gerrit

Command: ssh -p 29418 172.29.169.30

3.4 use Git Clone a repository from Gerrit

The remote Repository as bellow shows

3.4.1 Create local Repository.

Example: C:\Git_workspace\SmartAmplifier

3.4.2 Open the folder “C:\Git_workspace\SmartAmplifier”, right click and select Git Bash

Open remote Repositories as bellow shows

Double click the project that need to download, choose SSH way and they copy the command.

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com