Enable Git LFS in GitLab Omnibus Installation

Open gitlab config file in an editor

sudo vim /etc/gitlab/gitlab.rb

Search for the following line

#gitlab_rails['lfs_enabled'] = false

Uncomment it and change the value to true. It will look like this:

gitlab_rails['lfs_enabled'] = true

Save the file and reconfigure GitLab for the changes to take effect.

sudo gitlabctl reconfigure

This will enable Large File System in your GitLab.

The default file size limit is 250 MB. If you want to increase it, open the config file and change value to the number you want and reconfigure GitLab.

nginx['client_max_body_size'] = "200m"

Post navigation

Alvin Jaison

Myself Alvin Jaison. I'm a DevOps Engineer by Profession; A Mountaineer by Passion. I started this website to share DevOps related posts. Post your suggestions as a comment. You can reach me @ alvinjaison@outlook.com

Leave a Reply

Your email address will not be published. Required fields are marked *