Getting “fatal: Authentication failed” -error when sending git commands in Windows 10

后端 未结 9 1165
孤独总比滥情好
孤独总比滥情好 2021-01-30 01:40

After updating domain password, accessing git-repo is no longer possible. VS Code and Source Tree as well as Visual Studio are returning the following error message on pull, pus

相关标签:
9条回答
  • 2021-01-30 01:52

    Try the following:

    1. Click Start
    2. Type: Credential Manager
    3. See the Windows Credential Manager shortcut and double-click it to open the application.
    4. Once the app is open, click on the "Windows Credentials" tab.
    5. Locate the credentials that you want removed, they will start with "git:" and might begin with "ada:"
    6. Click on the credential entry, it will open a detail view of the entry.
    7. Click Remove and confirm removal when prompted.
    0 讨论(0)
  • 2021-01-30 01:53

    The password is stored in windows credential manager and needs to be updated. Open command prompt and enter the following command to view the list of stored passwords:

    rundll32.exe keymgr.dll,KRShowKeyMgr
    

    Scroll down in the list until you spot the git-related entries. Click it and edit the correct password.

    Voilà!

    0 讨论(0)
  • 2021-01-30 01:55

    Nothing worked for me, even uninstall git and reinstall. What worked for me was to create a Personal Access Token from your github account and use that as the password. This page will detail the procedures: https://medium.com/@ginnyfahs/github-error-authentication-failed-from-command-line-3a545bfd0ca8

    0 讨论(0)
  • 2021-01-30 01:56

    The only thing which worked for me was to remove the remote and add it back. I have tried deleting the credentials and even reinstalling the git the latest version. But the suggested way to access the remotes repos from Github and Microsoft DevOps is by using a shared key.

    0 讨论(0)
  • 2021-01-30 02:03

    I had the same issue when Cloning the repository via Bash/VS Code with "fatal:Authentication failed". I used SSH Key authentication instead to connect my repository following the article: [https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops&tabs=current-page][1] I didn't get any errors after with any bash commands!

    Above solution works only if your machine can SSH.

    0 讨论(0)
  • 2021-01-30 02:06

    I agree with Jesper, Other way to do is - On windows, if you can navigate to :

    Control Panel\User Accounts\Credential Manager

    Under Windows Credentials\Windows Vault page on Generic Credentials, you can update the password of existing GIT record or can also add new Generic Credentials.

    Updated answer for Mac users :

    In case if you're here with similar issue on Mac, you can do similar thing in keychain access - by deleting the existing GIT record, & then if you pass your credentials again in git bash or any other tool a new record gets created, things should work.

    0 讨论(0)
提交回复
热议问题