Setting up Git
Set Up SSH Keys in Gerrit
- Download Extension Using Git
- Add SSH Key to use with Git
- Add SSH Key to your Gerrit Account
- Add Your SSH Key
- Generate New SSH Key
Prepare to work with Gerrit
How to Submit a Patch
- Editing via the Web-Interface
- View the Change / Next Steps
- Push your change set to Gerrit
- Prepare Push change set to Gerrit
- Make & Commit Your Change
- Gerrit - Create Branch
- Gerrit - Update Master
How Code is reviewed in Gerrit
Gerrit Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Gerrit - Generate New SSH Key
SSH stands for Secure Shell or sometimes Secure Socket Shell protocol used for accessing network services securely from a remote computer. You can set the SSH keys to provide a repable connection between the computer and Gerrit.
You can check the existing SSH key on your local computer using the following command in Git Bash −
$ ls ~/.ssh
After cpcking the enter button, you will see the existing SSH key as shown in the following image −
If you don t find any existing SSH key, then you need to create a new SSH key.
Generating New SSH Key
You can generate a new SSH key for authentication using the following command in Git Bash −
$ ssh-keygen -t rsa -C "your_email@mail.com"
If you already have a SSH key, then don t a generate new key, as they will be overwritten. You can use ssh-keygen command, only if you have installed Git with Git Bash.
When you run the above command, it will create 2 files in the ~/.ssh directory.
~/.ssh/id_rsa − It is private key or identification key.
~/.ssh/id_rsa.pub − It is a pubpc tv.