在gitub上添加ssh key

cd ~/.ssh
ls

//生成、管理和转换认证密钥 -t type密钥类型rsa dsa -C密钥描述 comment
ssh-keygen -t rsa -C "aaa"
//
ssh-add ~/.ssh/aaa
//删除
ssh-add -D
//验证密钥
ssh -T git@github.com

rm -rf .git //删除git文件
原文地址:https://www.cnblogs.com/rain92/p/11768828.html