The image says it all. Why is git telling me that I've changed the file when I'm explicitly telling it to ignore it?
A .gitignore specifies files that should not be added to git's index. It does not prevent changes to files that are already in the index.
If you want to remove the file completely from the index, you will need to commit a deletion of that file. Then if the file gets recreated (and it is still listed in .gitignore), it will not be re-added to the index.
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