无法将回购推送到GitHub

无法将回购推送到GitHub,git,github,Git,Github,我试图用HTTPs将repo推送到GitHub,但Git push命令不起作用,我收到了这条消息。我已经用github配置了我的用户名和电子邮件,它们都显示正确 $ git push Username for 'https://github.com': Password for 'https://github.com': remote: Anonymous access to Azambadar/facerecognitionapp.git denied. fatal: Authenticati

我试图用HTTPs将repo推送到GitHub,但Git push命令不起作用,我收到了这条消息。我已经用github配置了我的用户名和电子邮件,它们都显示正确

$ git push
Username for 'https://github.com':
Password for 'https://github.com':
remote: Anonymous access to Azambadar/facerecognitionapp.git denied.
fatal: Authentication failed for 'https://github.com/Azambadar/facerecognitionapp.git/'
当我右键单击文件夹时,菜单中会出现GIT Bash,当我单击GIT Bash,然后要求我输入用户名和密码时,终端将打开,repo将以这种方式更新


你知道如何在指挥终端上工作吗?非常感谢

显然,您在身份验证方面存在问题。也许您的用户名、密码、远程url(例如两种方法)可以解决此问题

  • 打开终端并更改为项目的根目录,然后执行以下操作
  • $git远程设置url来源[您的GitHub项目.git url]

    $git推送

    然后系统会要求您提供GitHub用户名和密码。强烈建议您在项目中使用ssh密钥

  • 转到GitHub项目并将项目下载到首选路径,然后将文件复制并粘贴到新的克隆项目中,然后推送
  • 也许您需要这些命令来设置推送标识符电子邮件和用户名。

    $git config--global user.name[您的姓名]

    $git config--global user.email[您的电子邮件]

    你在用什么?