背景:首次创建git后拉取代码可以,提交代码报错(前提Git已经配置好ssh key)
问题:remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

解决:先生成token,访问带token的地址
git---seeting---developer settings


我的代码编译工具是IDE,直接在IDE的终端里操作,先找到自己项目的git地址

方式一:将远程链接地址设置成加token, IDEA终端执行下如下命令:
git remote set-url origin https://your token@github.com/***/master.git
方式二:


在进行推拉就没问题了。
网友评论