site is now 125Mb but error on push
Hi fiore,
I cleaned the repository, moving all big files to another server. I then used BFG Repo-Cleaner (https://rtyley.github.io/bfg-repo-cleaner/) to remove the big blobs from the repo. I now have 125Mb :-)
But the last step "git push" gives an error:
git push Username for 'https://gitlab.fabcloud.org': henk@waag.org Password for 'https://henk@waag.org@gitlab.fabcloud.org': Counting objects: 6359, done. Delta compression using up to 4 threads. Compressing objects: 100% (788/788), done. Writing objects: 100% (6359/6359), 124.16 MiB | 2.27 MiB/s, done. Total 6359 (delta 5431), reused 6359 (delta 5431) remote: Resolving deltas: 100% (5431/5431), done. remote: GitLab: You are not allowed to force push code to a protected branch on this project. To https://gitlab.fabcloud.org/academany/fabacademy/2018/labs/fablabamsterdam/students/henk-buursen.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://gitlab.fabcloud.org/academany/fabacademy/2018/labs/fablabamsterdam/students/henk-buursen.git'
It's because GitLab by default marks the master branch as protected. It discussed here:
https://stackoverflow.com/questions/28318599/git-push-error-pre-receive-hook-declined
Can you help with that?
grtz, henk