so, im having trouble with the subject with Sourcetree 3.0.1.
A few months ago, I cloned the project using a username&Token url.
As it seems the Token has expired and so i've created a new one and tried adding the account to sourcetree.
I'm typing in the username (tried primary and secondary) & token as described in my account in https://dev.azure.com.
The only thing i'm baffled about is the host i should be using, tried:
2. my git url.
We couldn't connect to Azure DevOps with your ('MyUserName') credentials. Check your username and try the password again.
What am i missing?
I got this working via the following steps:
If somehow your Sourcetree doesn't seem to be using the right PAT credentials when you try to clone your repo, force Sourcetree to use the credentials by prefixing the URL with them:
Using these steps, SourceTree will force using the PAT as credentials for the repo and you can clone and work on the repo directly.
PS: Somehow, I couldn't get the username - PAT as a password combination working. I found out this route and it works for me.
I hope it saves you some time!
I managed to get this sorted by doing the following.
Hope this helps
above works for adding the account, but gets an error when trying to clone a repo from DevOps as the git url is in the old format.
for me works to add an Account using the URL
Username: Your PAT
Passwort: Your PAT
How to create a PAT (Personal Authentication Token):
Then all works fine!
It seems to be different depending on unknown factors.
When I open up my projects (even one I created this January (2020), and go to the repo to find the clone URL it says:
So I use that. I didn't bother checking if the new URL format works since the tool shows me that URL.
If there are people that see the new URL format as "clone url" for their repo and that is not working, you're right: it should be fixed. But it needs to be fixed by Microsoft
What I find troublesome is the lack of documentation stating on how to get access to the repo correct (PAT as username and as password?)... This takes a lot of time for people.
Thanks for the answer.
I already mentioned that problem posted a bug also in the Microsoft community. https://developercommunity.visualstudio.com/content/problem/815239/new-organization-url-for-git-url-with-prefix.html
For me it is not clear where the bug needs to be fixed. Maybe you can also contribute on that bug.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
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