问题描述
git push的时候遇到下面的问题:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-g it/about-remote-repositories#cloning-with-https-urls for information on currentl y recommended modes of authentication.
解决
1 github生成token
记住这个token
2 git配置
这个时候写密码就写那个token
在 C:/用户目录/.git-credentials
里面增加一行:
https://github账户名:token@github.com
git保存一下配置,然后push就不用每次都输入密码了
密钥问题
1 本地查看公钥:
2 github上项目管理员添加你的公钥