Git:Support for password authentication was removed

134 阅读1分钟

Git 拉取代码报错,如下:

"Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see github.blog/2020-12-15-… for more information. fatal: unable to access “xxxx”

如何解決请看链接:stackoverlow

需要替换Git地址为:

https://<token>@github.com/<username>/<repo>

其中Token的获取方法为:

token can be found here