Gerrit add SSH key under Ubuntu environment

Source: Internet
Author: User
Tags using git

1, enter Ssh-keygen, generate key file, select Save directory (generally choose the default path, directly enter);

2, enter Cat/home/fieldwang/.ssh/id_rsa.pub, view key file, and copy;

3. Add and paste the key in Gerrit

PS: You must configure your personal user name and email address before using Git. These two configurations are important, and each time Git commits, it references these two messages, stating who submitted the update, so it will be permanently included in the history along with the update:

A, git config--global user.email "[Email protected]"

b, git config--global user.name "Field.wang"

If you use the --global option, the changed profile is the one in your home directory, and all of your projects will default to the user information configured here. If you want to use a different name or email in a particular project, just remove the --global option to reconfigure it, and the new settings are saved in the current project's .git/config file.

Gerrit add SSH key under Ubuntu environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.