github 报错 权限有关问题fatal: Authentication failed

github 报错 权限问题fatal: Authentication failed

错误信息
Username for ‘https://github.com‘: ×××××
Password for ‘https://××××@github.com’:
remote: Invalid username or password.
fatal: Authentication failed for

网上查的都说美有添加ssh key
但是我是git clone 的https方式

最终只是从新定义了一下那个配置,如下:
gitconfigglobaluser.namename git config –global user.email name@gmail.com

继续执行git 命令 用户名 密码 ok 报错解决