NCAR / python-tutorial

Online content for self-paced Python tutorial
https://ncar.github.io/python-tutorial/
2 stars 7 forks source link

Warning thrown after git add mysci.py #21

Closed hCraker closed 4 years ago

hCraker commented 4 years ago

Everytime after the first commit, this warning is thrown warning: LF will be replaced by CRLF in mysci.py. The file will have its original line endings in your working directory

I'm not sure why this is happening, but what can we do to address it by either removing it or making a note in the tutorial?

mnlevy1981 commented 4 years ago

@hCraker I think this is related to how windows and linux handle end-of-line differently (here's an overview from stackoverflow); I can't vouch for this, but could you try

git config --global core.autocrlf false

If that avoids the warning, we could add that to the windows instructions.

jukent commented 4 years ago

@mnlevy1981 I had just added that!