At work we use Git for versioning our code. We also use the suite of Atlassian products for managing tasks, code, and deployment. As such I use SourceTree a lot to manage my code. We’re also security conscious and so we have to change our passwords every couple of months – however this then breaks SourceTree.
What I mean is, when I change my password SourceTree doesn’t remember the change and so I have to enter it every. single. time.
Having Googled how to solve this 3 or 4 times now I thought I’d make a note on my blog so I can more quickly find the solution (hopefully the act of writing it down will mean I won’t have to Google it again).
The solution is actually quite simple once you realise – but doesn’t use any of SourceTrees dialogs.
- Open SourceTree and navigate to the repository you want to update the password of
- Run the ‘Actions > Terminal’ command to jump to the location of the repo on the command line
- Enter ‘Git Pull’ and hit return to update the repository
- When requested enter your password
- Done
So, if you want SourceTree to change password then you can’t do it with the GUI. You have to use the command line interface instead.
How was it for you? Let me know on BlueSky or Mastodon
Link to this page
Thanks for reading. I'd really appreciate it if you'd link to this page if you mention it in your newsletter or on your blog.