You can go again to Authentication of SourceTree and see your account has actually been added !ġ1- Ensure that your repository setting of your git is correctly formatted (. It will tell you it failed, do not worry it did not !Ĩ- Click Ok then Close SourceTree Completely.ĩ- Remove the password cache file called "passwd" in "C:\Users\\AppData\Local\Atlassian\SourceTree".ġ0- Open sourcetree again. Ensure you have this token saved somewhere TEMPORARILY because we will need it.ħ- Enter your email as username, and the just generated PAT as password. It is your decision !Ĥ- Open SourceTree, go again to Tools -> Options -> Authentication.Ħ- Prepare your new Personal Access Token, then click "Refresh Personal Access Token" button. Currently it is possible to return back to old format. So, if you want to follow exactly what I did, do it. ![]() I closed Visual Studio as well, just in case !ģ.5 - I switched to DevOps format from Organization settings in DevOps website. I am using SourceTree for Windows version 3.2.6Ģ- Remove all Visual Studio (or DevOps). You will try, and think you are not successful, but you are really near from it ! follow with me: I can use this to add my repos as remotes and my old, carry-over authentication still works for old repos. It popped up a login field I entered my email as user name and the PAT password as my password and after a while it came back Authenticated. The only flaky part was actually clicking the button to activate the Personal Access Token I had to make sure the Host URL field didn't have focus (I clicked every field in order, top to bottom to make the PAT button work). I added a new account to Authentication and used the built-in Azure option and the ` ` URL for the Host. The Azure integration seems to be working okay now. If, like me, you regenerated your token you use for SourceTree so you could get the password, you will need to edit the DevOps remotes and select the new DevOps Host entry instead of the old Generic Host. ![]() Remotes will work fine with the format after this initial account authorization.Īny remote repository added using the old Generic Account / Generic Host method (3.1.3 on Windows still had no DevOps integration) should still work if you didn't regenerate the token those remotes use. When trying to authorize with, it seems to succeed in logging in, but fail at gaining Git permissions. This is still the case in the SourceTree 3.2.0 Windows beta that is only a few days old. There is an open bug report on it (as Christian Wölke pointed out quite some time ago) that seems to be getting some slow progress, but a bump could help reminding them that it's still an active issue: When using this as host URL, and then using the account name used to log in DevOps as username and the PAT as password, it's working.Įdit:As of the issue is still ongoing, and I see more people are finding the answer here. One should still write it in the old VSTS link format (even if the organization has been made on DevOps): Please give this a go, before trying the workaround!Īpparently (at the time of writing ), when writing the host URL rather than writing: I've got ` sshCommand = "C:/Windows/System32/OpenSSH/ssh.exe"` in the `.gitconfig` ``-section.Edit: (as of ) The issue is reported as resolved - see What do I need to change in sourcetree config to get this working? Running git from the commandline never asks my passphrase as the Windows Credentials manager knows it and automatically enters it AFIK. My guess is that sourcetree is still trying to use the ssh in git as it tries to lauch the ssh agent (peagant) which aks for my passprase. My SSH client in sourcetree is set to OpenSSH and I have no SSH Key configured there. gitconfig, which sourcetree should about I'm guessing. ![]() Now, when I run sourcetree it asks for the SSH passphrase, regardless of the ssh config in my global. The commandline remembers my SSH passprhase and I can successfully clone a repository with SSH. I've created a ssh key successfully in the command prompt and added it to git. I'm using Sourcetree with system Git on windows with the windows OpenSSL feature enabled.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |