Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I am unable to perform git functions from Sourcetree to AzureDevops (PAT issue).

sean76 February 16, 2021

I am unable to perform git functions to AzureDevops as my Personal Access Token has expired.

When I generate a new PAT and add it to my account, it still does not let me perform git functions. 

This is error I get: 

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/feature/new_chat_button_issue:refs/heads/feature/new_chat_button_issue

Pushing to https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile

fatal: Authentication failed for 'https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile/'

Pushing to https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile

fatal: Authentication failed for 'https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile/'

Pushing to https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile

fatal: Authentication failed for 'https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile/'

Completed with errors, see abovePushing to https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile

fatal: Authentication failed for 'https://cchmc-dev.visualstudio.com/DefaultCollection/Caren/_git/org.cchmc.caren.mobile/'

Completed with errors, see above

2 answers

1 accepted

0 votes
Answer accepted
sean76 February 18, 2021

I found that along with updating the account in Sourcetree, you also have to go into Visual Studio => Version Control => Manage Remotes and Branches. You can then reconnect your remote with AzureDevops via your microsoft login. 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2021

Could you explain what this has to do with Atlassian?

sean76 February 16, 2021

I can generate the new PAT in AzureDevops, but when I add to my account in sourcetree, it does not seem to work.  Sourcetree was functioning correctly until my PAT expired. It seems that there are steps I am not performing correctly in Sourcetree to update my account. Please help. 

sean76 February 16, 2021

I am running Sourcetree on Mac version 4.0.2(236).

I have also tried to add a new account with the new PAT, but with no success. 

Thank you. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events