Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,311
Community Members
 
Community Events
168
Community Groups

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

Edited

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

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

Could you explain what this has to do with Atlassian?

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. 

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

Atlassian Community Events