How do I change a repository logo/icon in SourceTree?

Dusty Fields February 27, 2015

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

6 answers

7 votes
adamzasah January 10, 2017

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

Haruka YOKOMIZO January 16, 2017

Same problem.
I'm using OS X 10.11.4 and Source Tree 2.4 (for Mac).

Any updates on this?

jin zhaoyu January 16, 2017

Same problem !!

Clifton Franklund February 1, 2017

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.

Jan Loose February 9, 2017

Same problem here. It worked well but not working anymore:-|

Erik P. Hansen February 10, 2017

Same issue with 2.4 on Mac OS 10.11.

Daniel Heim February 24, 2017

Apparently, they're still working on it.

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

himanshu_k April 6, 2017

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

 

Haruka YOKOMIZO May 10, 2017

After upgraded latest version, this problem is resolved! THANKS :)

5 votes
Thomas Brockhage May 12, 2015

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.

3 votes
Louwki December 4, 2015

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/*
0 votes
renanlopes-bitbucket December 23, 2016

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

Cheers,

0 votes
Itamar Bledsoe June 16, 2016

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

0 votes
Wessel de Roode March 24, 2015

You need to change it on the repository and it will show up on sourcetree

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events