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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,850 views 4 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you