主要原因:
`remote: Support for password authentication was removed on August 13, 2021.
remote: Please see docs.github.com/en/get-star… for information on currently recommended modes of authentication.
fatal: Authentication failed for 'github.com/kitymore/ti…
解决方案 打开github的Token设置页面:
点击生成一个token:
具体设置如下:
后续的设置可以根据自己需要选择,对于大部分用户来说勾上“repo”应该就够用了。
创建Token成功后复制这个Token:
使用token:
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
将<your_token>换成你自己得到的令牌。<USERNAME>是你自己github的用户名,<REPO>是你的项目名称
`换成你自己得到的令牌。是你自己github的用户名,是你的项目名称
然后再次执行 pull push 操作,大功告成。