Reputation: 422
I had a project.rar
file that was 350 MB. unfortunately I commit it and push it to remote gitlab.
now the gitlab storage is 500 MB. how to remove that file from gitlab storage ?
I tried these :
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch project.rar" HEAD
and then git push --all
but not work.
please help, thanks
Upvotes: 5
Views: 1880
Reputation: 41041
You must follow GitLab's guide to purge files from a repository to actually reduce the repository size.
You must export your project, run git filter-repo
, then upload the resulting filter file to GitLab's repository cleanup.
Upvotes: 2