I'm trying to push changes to Github, but each time I get a warning that the files I'm pushing are too large.
Before I push my changes, I ran git rm -r --cached .
to remove all of my files from the index. I've similarly included cache/
in my .gitignore
. However, when I try to commit and push my changes, it still tries to push these large files.
remote: warning: File server/cache/0.12.2/osx32/... is 61.19 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
What gives?
Note: I'm the only one using this repository and I have backed up all of my work, so I felt safe using git rm -r --cached
.
Edit - added gitignore and file structure.
.gitignore
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride
*.dll
*.pak
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
standalone/
cache/
node_modules/
debug
~$*
# Icon must end with two \r
Icon
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
Thumbs.db
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
Also, my directory structure is as follows:
.gitignore
server
--cache
--node_modules