S
S
Sergey Burduzha2019-06-14 12:54:06
linux
Sergey Burduzha, 2019-06-14 12:54:06

How can I change the ending of all files in a project from lf to crlf in Windows?

Good afternoon.
I'm working under Windows, so far the end-of-file check in git has been turned off. But, I decided to include it, so it's more correct.
And now I can’t upload the project to github, I need to change the line endings.
There is notepad++, but it can only be changed in the current file.
How can the problem be solved for the entire project?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark, 2019-06-14
@serii81

You can massively recode in the terminal with this nonsense, for example: https://pypi.org/project/eol/
There is a similar one in JavaScript: https://www.npmjs.com/package/crlf
Git has an option to accept any line endings, but commit LF (in my opinion, this is the default in new versions, or I came across such a distribution). Gets rid of fuss.

G
gosha-z, 2019-06-14
@gosha-z

Notepad++

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question