Does anyone knows how to ignore this file from the repository with .gitignore?
I'm using Gitlab.
I've already tried this:
Thanks in advance
The gitignore line is correct, but git ignores it if some matching files are already pushed to the remote repository. It means the files are in the git index, so it will want to stage them until you remove it from index.
You could try to delete the file from the git index using
git rm --cached npm-debug.log.xxx
See more on this thread :)
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