1. 输入命令sudo apt-get install git,安装Git;
2. 输入命令git config --global user.name [your user name]和git config --global user.email [your email],配置用户名和电子邮件;
3. 输入命令ssh-keygen -C [your email] -t rsa生成密钥,密钥保存路径在~/.ssh/下;
4. 输入命令cd ~/.ssh,gedit id_rsa.pub进入.ssh目录并打开id_rsa.pub文件,复制id_rsa.pub文件的所有内容,上传至代码平台.