Faced a problem, I use Grunt projects, when sending to a remote repository, I want to ignore the
node_modules , but constantly knocks the error.
node_modules / .gitignore node_modules / * .gitignore
Tell me, please how to use it in this case
.gitignore , because In this folder, there are a lot of other folders and everything needs to be ignored.
Answer 1, Authority 100%
Create a text file with the name of the
.gitignore in the root of the project and enter it directory names (in your particular case – only one –
Node_Modules ) that you want to ignore, by one on the string.
Check your editor in this file to use as Row Translation
\ N (lf , linefeed ), but not
\ r (cr , Carriage Return ), and not their combination
\ r \ n (crlf ).