D
D
Dmitry Sonko2013-08-04 17:02:58
git
Dmitry Sonko, 2013-08-04 17:02:58

Replacing CRLF with LF

Faced such a problem that part of the team sits on nix, part on Windows, part on poppies. The repository, respectively, mixed crlf with lf. Is it possible to somehow bring all the files in the repository to the same form, LF, and how to make a person write in the ideal in a hyphenation system that is convenient for him, but the file is still committed and converted to LF. I tried to do according to the github manual, but the result is zero. As there were CRLF files, they remained.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
gvsmirnov, 2013-08-04
@gvsmirnov

The github manual is correct. At what step are you having problems?

E
edelweard, 2013-08-04
@edelweard

Take unix, set core.autocrlf=false, run dos2unix on all files, commit. Then in the repository all files will be with LF.
Then do as it says on Github, and on systems with core.autocrlf=true, the files will be checked out as CRLF into the working copy.
By the way, I don't think you need core.eol, and the github manual doesn't mention it either.

D
Dmitry Sonko, 2013-08-05
@SonkoDmitry

plus dos2unix only works with folders within the same folder, I would certainly like to run recursively through all directories

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question