Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitIgnore for .history angular project

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

enter image description here

like image 973
Jay Avatar asked Jun 26 '26 02:06

Jay


1 Answers

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)

like image 72
VonC Avatar answered Jun 27 '26 15:06

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!