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