SSH 公鑰設置
1、Git Bash 執行命令
git config --global user.name "無悔"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
2、按照提示完成三次回車,即可生成 ssh key。
3、複製上面生成文件 id_rsa.pub 中的內容。
4、Gitee Setting 配置 SSH 公鑰
5、測試是否配置成功
ssh -T [email protected]
6、本地倉庫關聯遠程倉庫
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/feiqiangsheng/git_test.git
git push -u origin "master"