I'm trying to push my git repo to a heroku servers, now I used to have a big vendor folder, but I removed it using:
git rm -r --cached vendor
And I had no problem at that stage, anyways after I removed the files, and made the commit and everything, it seems that whenever I make push I still use the same files (even the files that I deleted), I'm pretty sure it is cached somehow, so how am I supposed to flush the cache? I tried so many stuff like updating the index but it's very weird since I'm still pushing 20 MB instead of 2 MB right now.
Any help would be highly appreciated.
git show branch-name:vendorshould inform you that the path doesn't exist) Are you worried about the size of the hosted repository? (You can't entirely remove those files and regain that space without rewriting history.) You also seem to be possibly confused about terms like "index" - you might benefit from reading the first parts of progit.org/book or book.git-scm.com, or maybe tom.preston-werner.com/2009/05/19/the-git-parable.htmlgit rm -r --cachedremoves the files from the index, not the working tree