Sorry for duplicating endlessly, but nothing has worked so far in the many posts I've read and in previous answers. I have been working on a project in a local repo, and, when I made my initial commits, they included a bunch of csv files that I don't want pushed to Github. After many commits, I added a .gitignore
file with the single line *.csv
which I understand will prevent future monitoring csv files in any directory of the project. I also understand that a .gitignore
file won't stop git from pushing files in the commit history, even though I've asked for them to be "ignored."
Furthermore, I have tried cloning the project, but this doesn't seem to address anything. I think that this also clones the commit history, so nothing is achieved regarding a "clean history" that doesn't include the files I want ignored. Same errors when I try to push. After cloning, I also tried git filter-repo --path *.csv --force
per some answers here, but this seemed to just delete everything in the cloned repo yikes! I've also tried the things always suggested, ie git rm --cached -r .
and then git add
and then comitting and pushing.
Does... anyone actually understand what I'm saying? Is there really not a solution that can be spelled out?