How do I change a repository logo/icon in SourceTree?
Asked by Dusty Fields:

How do I change a repository logo/icon in SourceTree instead of the blue circle with the bucket?


Answers:
author: adamzasah
body: In version 2.3 and 2.4 (for Mac) putting the icon.png to root directory just does not work, it worked pretty well before. Cleaning the cache, refreshing avatar, restarting the app nothing seems to work. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

comments: author: Haruka YOKOMIZO
body: Same problem.  
I'm using OS X 10.11.4 and Source Tree 2.4 (for Mac).

Any updates on this?


author: jin zhaoyu
body: Same problem !!


author: Clifton Franklund
body: 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.


author: Jan Loose
body: Same problem here. It worked well but not working anymore:-\|


author: Erik P. Hansen
body: Same issue with 2.4 on Mac OS 10.11.


author: Daniel Heim
body: Apparently, they're still working on it.

<https://jira.atlassian.com/browse/SRCTREE-3096>


author: himanshu_k
body: it is working now in the latest update, just add the icon.png in your repository root folder..


author: Haruka YOKOMIZO
body: After upgraded latest version, this problem is resolved! THANKS :)


author: Thomas Brockhage
body: You put a file called "icon.png" with your desired content into the root directory of the repository and restart Sourcetree. No need to commit the file into the repository, it just needs to be there locally.


author: Louwki
body: You just add 'icon.png' to root of your repo as @Thomas said and restart.

If it still does not want to show up clear the cache

on mac

```
rm -v ~/Library/Application\ Support/SourceTree/ImageCache/*
```


author: renanlopes-bitbucket
body: I am using a MacOS and this way worked for me:

<br />

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 =)

<br />

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

Cheers,


author: Itamar Bledsoe
body: 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:

SourceTree icons.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-change-a-repository-logo-icon-in-SourceTree/qaq-p/428951?attachment-id=10188){#link_11744a320ce065}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/12878/1/SourceTree%20icons.png){#display_11744a320ce065_0}


author: Wessel de Roode
body: You need to change it on the repository and it will show up on sourcetree