I don’t know if this will help anyone but I created my .gitignore file in PS with echo “” > .gitignore and thus the encoding was set to UTF-16LE and not UTF-8. This caused problems with .gitignore working properly.
I don’t know if this will help anyone but I created my .gitignore file in PS with echo “” > .gitignore and thus the encoding was set to UTF-16LE and not UTF-8. This caused problems with .gitignore working properly.