github不让用户名密码提交代码

问题,github不让用户名密码提交代码

 Support for password authentication was removed on August 13, 2021. remote: Please see https://docs

1、设置好token,记录token

 

 

 

 

 

 

 2、本地初始化git,并提交代码到github仓库

git init
git remote set-url origin https://token内容@github.com/账号(邮箱前缀)/仓库名称.git
git add .
git commit -m "first commit"
git push -u origin master

 

posted @ 2022-09-23 20:08  linzm14  阅读(78)  评论(0编辑  收藏  举报