Converting repo objects to LFS - jrcloudsolutions/tidbits GitHub Wiki
There is an issue where GitLab repos that grow too large, specifically 1GB per Git technology recommendations, will start experiencing performance and other issues. As a result, git code repos need to be kept under 1GB, and manually convert binaries such as .zip's, .pdf's, .png's, etc. to LFS objects using the following procedure:
git clone .git git lfs install <=== This step is required on any cloned down repo, it does not installs lfs, but enables it git lfs track ".pdf" ".zip" ".png" <=== Note that this command may need to be run individually for each file format because sometimes only the first file format is recognized with the lfs badge on the GitLab UI git add .gitattributes <=== Cat this file to ensure the proper formats are included git commit -m "To convert file formats xyz into lfs" git push origin master <=== push to either master, main, etc. branch, depending on what branch was cloned down previously
Source: https://docs.gitlab.com/ee/topics/git/lfs/
Issue #1: If you get error "Locking support detected on remote "origin". Consider enabling locksverify use "git config http:sslVerify false"
Issue #2: You may need to use "git lfs migrate import --everything --include .pdf, .zip, etc.