【gitbub遇到的问题】新建工程后,本地无法push代码?提示鉴权失败
✘ xxxxxx@macdeMacBook-Pro-3 /Volumes/mac/repeater_console_qiankun main git push -u origin mainUsername for '': xxxxxxxxPassword for 'https://skyhack1212@': yyyyyyyremote: Support for password authentication was removed on August 13, . Please use a personal access token instead.remote: Please see https://github.blog/-12-15-token-authentication-requirements-for-git-operations/ for more information.fatal: '/skyhack1212/repeater_console_qiankun.git/' 鉴权失败
【问题原因】
多次输入的用户名和密码,可以确认是没问题的,但是就是报错鉴权失败。原因其实是Password不应该输入登录密码,而是access token,如何设置access token呢?见下面具体步骤。
【解决方案】
参考这里:/GaoJHIT/article/details/119450935