ssh-keygen -t rsa -C "XXXXX@qq.com"
https://gitee.com/profile/sshkeys
ssh -T git@gitee.com
Git 全局设置:
git config --global user.name "dldxzjr"
git config --global user.email "XXXXX@qq.com"
创建 git 仓库:
mkdir bluewhale_saas
cd bluewhale_saas
git init
touch README.md
git add README.md
git commit -m "first commit"
#此处需要添加ssh形式的链接,才能使用到公钥认证的方式
git remote add origin git@gitee.com:dldxzjr/bluewhale_saas.git
git push -u origin master
原文:https://blog.51cto.com/dldxzjr/2537909