Setting up environment¶
For Debian based systems:
sudo apt-get install git -y
For rpm based systems:
sudo dnf install git -y
For MacOS systems, install homebrew and install Git
brew install git
For more information on git, see the Git Guide in the Linux Foundation Releng Documentation.
Set the author name or email used to sign off a commit with the following commands.
git config --local user.name "Your Name" git config --local user.email firstname.lastname@example.org
Your name and e-mail address (including capitalization) must match the one you entered when creating your LFID account.
Optionally, change the Git commit editor to your preferred editor, for example, vim.
git config --global core.editor "vim"
pip install git-review
If you don’t have pip installed already, follow the installation documentation for pip.
Setting up gerrit¶
Setting SSH keys¶
Generate SSH keys.
ssh-keygen -t rsa
Your public key is now available as .ssh/id_rsa.pub in your home folder.
Print the generated key to the terminal and copy it.
On the project gerrit page, go to Settings.
Click SSH Public Keys under Settings.
Click Add Key.
In the Add SSH Public Key text box, paste the contents of your id_rsa.pub file and then click Add.
Setting up CLA as an individual contributor¶
Navigate to Settings — the gear icon on the upper right corner, and click Agreements from the menu on the left:
Click New Contributor Agreement.
New Contributor Agreement types appear:
Choose the Individual CLA option.
Click the Please review the agreement link and then click the message link that appears:
Sign in to EasyCLA if you are prompted.
To contribute to this project, you must be authorized under a signed Contributor License Agreement. You are contributing on behalf of your work for a company.
If any further prompts appear, follow the steps described at the below links:
Complete the form and click SEND.
The CCLA manager signs a Corporate CLA and adds you to the approved list.