Recently i had moved my gitlab instance to another domain in my private network. With that unfortunately some of the functionality (e.g. git-lfs) didn’t work properly as it was still announcing the old url. The solution was found here :

  • Edit /etc/gitlab/gitlab.rb
  • Look for the entry external_url which needs to be updated
  • Save
  • Reconfigure gitlab using: sudo gitlab-ctl reconfigure
  • Restart gitlab using: sudo gitlab-ctl restart