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
Ben is a lifelong Nintendo fan who also likes to build websites, and develop games. He also buys way too much Lego.