-1

enter image description here

Getting this error while using command - git add . I have tried the solution - git config core.autocrlf true But its not working. Anyone suggest a better solution.

Shakti Raj Singh
  • 597
  • 1
  • 4
  • 8
  • 3
    First of all, why are you adding node-modules to git? You can install node-modules from package.json. So only that needs to be added. – Albin Paul Mar 14 '22 at 05:52
  • 1
    Note that it's a warning, not an error. – torek Mar 14 '22 at 09:40
  • https://meta.stackoverflow.com/a/285557/5586359 Text, please! http://idownvotedbecau.se/imageofcode. [edit] your question, copy/paste from the terminal and properly [format](https://stackoverflow.com/help/formatting) it as code. Images are not helpful, they're hard to read and hard to search. Badly formatted code is hard to read. Images are only good to show something non-textual (like colors). – phd Mar 14 '22 at 15:16
  • I will take care from next time, not to upload code in the form of an image. Thanks for the review. – Shakti Raj Singh Mar 15 '22 at 08:07

1 Answers1

1

Regarding the warning message itself ("Windows git "warning: LF will be replaced by CRLF", is that warning tail backward?"), always use:

And in your case, as commented, add node_modules to your .gitignore, as it is usually done in Node project .gitignore.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250