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.