Currently, I have, on local branch master, a folder structure like:
project
models
web
app
app_env (vritualenv)
requirements.txt
I want to push everything besides models and app_env code to app_demo, a remote branch under origin.
I did cd to project and did:
git add .
git rm --cached -r models
git rm --cached -r web/app_env
git commit -m "Please work"
git push origin master:web_demo
But got
remote: error: File models/variables/variables.data-00000-of-00001 is 986.28 MB;
this exceeds GitHub's file size limit of 100.00 MB
! [remote rejected] master -> app_demo (pre-receive hook declined)
Because some file under models was too big. I thought I removed it already!? Why is this happening?