How to add icon to my repository?

24,183

Solution 1

We as a developer sometimes need a change to make our tools look different.

You can add a small(I prefer 96px x 96px) logo.png image file to the root of your repository.

repository screenshot

Which makes your project more specific and easy to find with gitlab or SourceTree git client. Unfortunately github does not support this feature.

gitlab screenshot

It is very simple but it works!

sourcetree screenshot

Update: Thanks to your comments I have found another way within Gitlab repository settings:

gitlab settings screenshot

hope you enjoy this trick and make your tools more fun :)

Solution 2

If you want to put an icon on your project in Gitlab, do the following instructions:

  1. Go to your project then in left side click on 'Setting'
  2. Click on 'General' then in 'General project' section hit Expand
  3. Then in project avatar section hit Choose file... your avatar icon file and upload it.
  4. Finally hit Save changes

[NOTE]:

  • Note that you should have the Maintainer permission on this project.
  • Maximum size is 200KB
Share:
24,183

Related videos on Youtube

Mohsen Mirhoseini
Author by

Mohsen Mirhoseini

I am a senior software engineer with a passion for Android development. I have worked more than seven years extensively in the mobile application and also had a chance to lead and train other developers. I am a kinda computer geek who cannot resist Mobile apps, IoT, Tech talks, and video gaming.

Updated on December 04, 2020

Comments

  • Mohsen Mirhoseini
    Mohsen Mirhoseini over 3 years

    I have found that Gitlab and SourceTree support icons for every repositories which make them more specific and easy to find at one glance.

    How is this possible?

    • BrokenBinary
      BrokenBinary over 7 years
      In GitLab, under the project settings there is a place to upload a "Project Avatar".
    • Cœur
      Cœur about 7 years
      The feature has been broken on SourceTree for about 2 years: jira.atlassian.com/browse/SRCTREE-3096
    • Mohsen Mirhoseini
      Mohsen Mirhoseini over 6 years
      I don't think so, cause I am using this feature right now! Read the last comment from the link you sent.
  • Benyamin Jafari - aGn
    Benyamin Jafari - aGn over 5 years
    @VaggelisManousakis Yes, you should have the Maintainer permission on this project.