Generally, we recommend to use ssh way ssh is recommended if you want to contribute code to ONOS, but there are some restrictions . Anyway, you may be in some areas when using ssh, so if the ssh won't work in your locationwhere access to ssh is restricted. If this is the case, please try to use https way to contribute to ONOS. The steps are similar to SSH , except that you'll need to enter the your username and password each time you want to submit the code.
Optional: Read-write access to the ONOS source code via Gerrit,
Generate Password（only for https）
- After logging into the Gerrit account, go to Settings > HTTP Password, click Generate Password to generate the password which using when submitting code, if you forget the password just go to HTTP Password regenerate a new one.
Developers planning to contribute code should configure git with their username and email.
git config --global user.name "firstname lastname" git config --global user.email "firstname.lastname@example.org"
git to remember password (only relevant for https, optional)
When using https and password to authenticate, you may want to use git credential helper to remember password for you.
See article provided by github for instruction setting up git credential helper: https://help.github.com/articles/caching-your-github-password-in-git/