git 公钥 ssh


1 安装 git

 2 桌面右击  Git Bash Here 

3 命令:

git config --global user.name "git账户"
git config --global user.email "邮箱xx.com"

ssh-keygen -t rsa -C "
邮箱xx.com"
    连敲三次回车
cd ~/.ssh

ls
    ##如果有 id_rsa.pub 文件 
vim
id_rsa.pub

  ##复制内容到网页添加

如果 添加了ssh idea 提交代码还有问题,删除代码 重新荡代码 提交 

 
Git