In my project directory, there is a directory called docker/
, under which there's another directory volumes/
, under which there are sub-directories. The directory structure is like:
my-project/
- docker/
- volumes/
- data/
...
- other-data/
...
.gitignore
I need git to ignore everything under directory docker/volumes/
since there are large files under it. Since I already committed .gitignore
, now I need to update .gitignore
. So, I opened .gitignore
& updated it to:
...
docker/volumes/*
After saved it. I run:
git rm -r --cache .
Then, I git add .
& run git commit -m "update gitignore & reset cache"
.
Then, I git push origin master
But I still get error:
remote: error: Trace: 103f63186285fad8994c61ba22338c97bb63f7d3a31c782e4a20f0a837bf73b3
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File docker/volumes/data/default/00000000000000000000.snapshots is 256.00 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File docker/volumes/other-data/default/00000000000000000000.events is 256.00 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
I mean I should have already asked git to ignore everything under docker/volumes/
, or aren't I?