-1

I was adding files to the git staging area by using "git add ." and it kept showing multiple warnings.Why is it so?

warnings shown by command prompt

torek
  • 389,216
  • 48
  • 524
  • 664
coco Jas
  • 11
  • 1
  • Note: don't post images of text; see [ask]. Suggestion: try a search: https://stackoverflow.com/search?q=%5Bgit%5D+warning+crlf+will+be+replaced – torek Aug 13 '21 at 17:37

1 Answers1

0

The Reason for this error is the folder called node_modules.

node_modules contains many files to solve that you have to add a file called .gitignore .

Steps to avoid node_modules

create a file .gitignore

write /node_modules

and if you want node_modules

It will be endless i guess and i done one project i ignored node_modules and it works fine

Sarvesh
  • 162
  • 12
  • This is not the reason of the Warning but it's still right to say that OP doesnt have (and shouldn't) commit the `node_modules` directory. – Gaël J Aug 14 '21 at 16:45