使用git下载代码
来自个人维基
一、安装git
ubuntu安装
apt-get install git
windows可以下载安装 msysgit
二、生成ssh密钥
命令:ssh-keygen -t rsa -C "xxx@xxx.com",如
$ ssh-keygen -t rsa -C "xxx@xxx.org" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in id_rsa. Your public key has been saved in id_rsa.pub. The key fingerprint is: 86:04:ae:65:07:84:8e:dc:61:ea:0d:03:8e:6e:07:42 xxx@xxx.org
则在 ~/.ssh/目录下生成了 id_rsa和 id_rsa.pub两个密钥文件,前者为私钥,后者为公钥。
把生成的公钥复制加入 gerrit