Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Desktop Authentication Failed

Using: Windows 10, Github Desktop, Git 2.19.1.windows.1(64bit), VisualStudio VSTS

Background: Managed to add the repository I had in my machine, but I can't do anything with it. I have access to the remote repository, I used gittortoise before, and I could commit just fine.

Procedure: Trying to use Github desktop to fetch, pull, or commit changes to remote.

Error: Authentication Failed (We were unable to authenticate with repository. Please enter your username and password to try again.)

Attempt: Tried to input the username and password I used to login visual studio vsts, it keeps giving me the same error.

Objective: Fetch, pull, commit from github desktop to remote repository.

like image 383
bdi cesec Avatar asked Oct 08 '18 18:10

bdi cesec


People also ask

How do I fix git authentication failed?

It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager too. type "Credential Manager" in Windows Search menu open it. Windows Credentials Manager->Windows Credential and under Generic Credentials edit your git password.

Can I use GitHub desktop with azure DevOps?

3 . Under the Scopes section choose Custom defined and then select Read & Write under the Code section. This will grant GitHub Desktop read and write access to your Azure DevOps repositories.


1 Answers

Actually, the guy above, @bhoeschen, is spot on.

Instead entering your VSTS / Azure DevOPS username and password, rather create a Personal Access Token (PAT), and use that for the password.

https://docs.microsoft.com/en-au/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate

Condensed instructions from that page:

  1. Sign in to either your Azure DevOps organization
  2. From your home page, open your profile. Go to your security details.
  3. Create a personal access token.
  4. Name your token. Select a lifespan for your token.
  5. Select the scopes that this token will authorize for your specific tasks.
  6. When you're done, make sure to copy the token. You'll use this token as your password.
like image 167
Ted Strome Avatar answered Oct 15 '22 17:10

Ted Strome