"File contains carriage returns at end of line" error on Windows 10

119 Views Asked by At

I'm trying to push my local branch to a fork on Github but every time I try, I get the error message "File contains carriage returns at end of line" from virtually all the files in the cloned repo, even though I didn't work on them.

Here's a screenshot of the error message. I'm using a Windows 10 in my conda environment and VS code as my code editor.

I will also point out that I'm quite new to open source contributions too.

screenshot of error message

1

I have tried git config --global core.autocrlf but nothing happened. I have also deleted my fork and clone and restarted the whole process and still got the same result at the end.

I don't know what else to do.

0

There are 0 best solutions below