I'm having the same problem with SourceTree 2.4 running on Macintosh 10.12.3. I finally just opened the Application with Show Package Contents and replaced the default icon to octocat (since I mostly use GitHub remote repos). The default icon can be found at Contents/Resources/defaultrepoicon.png Sorry, I know this doesn't help much if you want to individually change repo icons.
I didn't know you could have icons for repositories in SourceTree! This will be so helpful! Unfortunately I couldn't get the results I expected. Did I misunderstand the intention? I'm trying to have icons as shown in this mockup image:
I am using a MacOS and this way worked for me:
1- Put your image file in root folder of your project.
2- Your icon needs to have this name icon.ico
3- Close your SourceTree
4- Use the command line
sudo rm -v ~/Library/Application\ Support/SourceTree/ImageCache/*
Command recommended by @Ettienne Louw thanks to you =)
5- Open your SourceTree and wait a little seconds your icon must to be appears in your project
6- If the icon do not appear just refresh the avatar and wait a little
I hope this way works for you too
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs