-1

I am new to node.js and Github. I was trying to save some work by using command git add -A and the then I saw these lines below and some many of the lines are just running non-stop. I typed ctrl+c to stop it, but anyone knows what are just happened or what did I do wrong??

Thanks

enter image description here

Amiga500
  • 5,874
  • 10
  • 64
  • 117
Sen123
  • 97
  • 1
  • 8
  • 4
    Possible duplicate of [git replacing LF with CRLF](https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf) – bcorbella May 22 '18 at 12:21
  • There is nothing wrong with this, or anything that you should be terribly worried about. It's just telling you that GitHub uses CRLF as the newline character, and you use LF. The system automatically converts this for you. – Evan Bechtol May 22 '18 at 12:21

3 Answers3

1

This is because of how git treats the space character.

Find more info here: https://stackoverflow.com/a/1967986/2874959

bcorbella
  • 271
  • 2
  • 7
0

Thanks @bcorbella for the answer. Just a small precision to be sure you won't do this as a beginner but never add the node_modules into your git project. Create a .gitignore file with at least:

node_modules

Use npm init, npm install <module> --save to create a package.json... then do simply a npm install when you are checking your project.

More info in here https://docs.npmjs.com/getting-started/using-a-package.json

0

try setting the config core.eol to native and see if you will get the same error, i see no reason why you should be tracking the node_modules/ folder.

> git config --global core.eol native
0.sh
  • 2,659
  • 16
  • 37