I have two heavy files weights.bin
and perf.npy
, like other files to be ignored, I added the following to my gitignore
file:
*.bin
*.npy
However, when I try to push them, it still appears on my github? Could you help me with that?
I have two heavy files weights.bin
and perf.npy
, like other files to be ignored, I added the following to my gitignore
file:
*.bin
*.npy
However, when I try to push them, it still appears on my github? Could you help me with that?
You can try clear cache of git:
git rm -r --cached .
git add .
git commit -am 'git cache cleared'
git push
Files that are tracked by Git are not automatically removed if you add them to a .gitignore file. Git never ignores files that are already tracked, so changes in the .gitignore file only affect new files. If you want to ignore files that are already tracked you need to explicitly remove them.
git rm --cached doNotTrackFile.txt