推荐使用ssh协议连接
一、创建ssh协议连接
1、注册GitHub账号并登录
2、new repository
3、Create a new repository
4、选择ssh协议
5、 将本地git库和远程GitHub建立关联
echo "# test456" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin git@github.com:hejiangzhou1/test456.git git push -u origin main
二、创建https协议连接
重复前面1~3步骤
4、选择https协议
5、当执行git push -u origin main时提示
1)查看Personal Acces Token
2)
3)
4)
5)
6)