GitLab is a well-know git server software with many “pretty” features. If you have enough budget, GitLab Enterprise Edition (EE) is good choice, but if you are using Community Edition (CE), you might want to change the default GitLab branding logo. Quick steps to change GitLab branding logo and favicon is as follows:
- Copy your new assets (brand_logo.png, logo-white.png, favicon.ico) to gitlab asset folder: /opt/gitlab/embedded/service/gitlab-rails/app/assets/images
- Clean asset cache:
[bash]gitlab-rake assets:clean RAILS_ENV=production[/bash]
- Regenerate the asset cache into /opt/gitlab/embedded/service/gitlab-rails/public/assets/ by running the command line
[bash]gitlab-rake assets:precompile RAILS_ENV=production[/bash]
. If you face some permission error, just chmod files in the cache folder to 777 and all will be fine
- Done, restart gitlab service:
[bash]gitlab-ctl restart[/bash]
One noted is that the above steps need to be re-done every time gitlab is upgraded 🙂