I have a file (example: src/test.txt) which wasn't ignored before. But I'm ignoring it now (.gitignore on parent folder). If I do a git clone
, this ignored file is included in the download.
Is there a way to somehow delete this file from git? I've searched the net but found nothing. I'm unsure what search criteria to use.
There are no branches in my repository.
edit: as a test, I created a new repository. ran "git add ." to add all files and then commit and pushed it. I then cloned the new repo and the ignored file is not listed.