ssh-keygen,set your ssh private key and public key
copy your public key to server admin,paste in Gerrit
SSH connection
ssh -p 19418 yourname@172.23.116.1
create “config” under ~/.ssh
add content in config
ssh gerrit
Create a new project
ssh Gerrit gerrit create-project -n new_project
also can create new project on Gerrit directly
Clone project to local machine
Copy commit-msg to local
Change push branch
Workflow
Create/copy file in cloned project site(eg:code.py)
Track file: git add code.py
Commit file: git commit -m “code review”
Push to remote server: git push origin(master)
check change ID on Gerrit
Verify pass: merge into focus branch
Verify failed
1.Add comments and mark as failed on Gerrit
2.Modify code according comments at local
3.git add code.py
4.git commit --amend (DONOT add -m)
5.git push origin
6.Code review again