I first found that .gitignore was not working for me even if I've specified the files that I didn't want to add. I tried using git rm --cached
to untrack those files but I was stuck with the following error:
fatal: pathspec 'System2/Benchmark/sys2.xtc' did not match any files
I've made sure that the file did exist, but git seemed not able to find it.
Since the size of this file is larger than 100 MB, I really needed to make .gitignore work for it. I'm wondering how I could solve the error I had when running git rm --cached
. Thanks!