Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Git requests Password when GitHub actually requires Auth Token #1407

Open

Description

@corsonknowles

This confusion arises if you have enabled 2FA.

When you are asked to re-authenticate to GitHub from the Git command line it will ask you for your username and password. In this case, your username is your Git username (not your GitHub username) and your password will not work (because of 2FA), instead you will need to enter your GitHub auth token.

Proposed fix: Language in the Git command line should be updated so that it is not nonsense.

Activity

  1. NobbZ commented on Nov 9, 2018

    @NobbZ

    What is GitHub CLI?

  2. corsonknowles commented on Nov 9, 2018

    @corsonknowles
    Author

    CLI = Command Line Interface
    When you connect to GitHub from Terminal, Z shell, a unix prompt, etc..

  3. corsonknowles commented on Nov 9, 2018

    @corsonknowles
    Author

    But I see your point; I know very little about the maintenance of Git and its likely that this would have to be addressed directly in Git. I am not sure if the GitHub team is involved in active maintenance of Git.

  4. changed the title [-]GitHub CLI says enter your Username and Password when it actually wants Email and Auth Token[/-] [+]Git requests Password when GitHub actually requires Auth Token[/+] on Nov 9, 2018
  5. corsonknowles commented on Nov 9, 2018

    @corsonknowles
    Author

    This confusion is actually documented here:

    https://help.github.com/articles/accessing-github-using-two-factor-authentication/#using-two-factor-authentication-with-the-command-line

    When prompted for a username and password on the command line, use your GitHub username and personal access token. The command line prompt won't specify that you should enter your personal access token when it asks for your password.

    I think the first sentence is inaccurate though.

  6. NobbZ commented on Nov 18, 2018

    @NobbZ

    I know what a CLI is, but I'm not aware of a GitHub CLI. That's why I'm asking.

  7. erkinalp commented on Nov 18, 2018

    @erkinalp
  8. added
    authentication
    on Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticationgit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions