Why is gitignore not working for me? Why are files in .history folder not getting ignored?

Make sure to remove those files from the index first:
git rm -r --cached src/.history/
Then check the status reported by VSCode: those files should not be there.
Note: the .gitignore rule should be
.history/
(no need for '*': you ignore the just the folder, with the trailing '/': that is enough)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With