Home:ALL Converter>How to repeat a checkout after changing CRLF to LF only

How to repeat a checkout after changing CRLF to LF only

Ask Time:2019-02-08T08:11:43         Author:Andy

Json Formatter

I have a repository checked out on a windows machine, but it has CRLF newlines in every file. I would like to check this repository out with Unix format LF only instead. I've changed the setting on tortoise git to disable changing newlines to the Windows format, but how to I get it to actually update the newlines in my checkout to LF?

I'm in this pickle because I have some changes I've made and committed to one repository on my windows machine that I would like to copy to another repository on my Linux machine. The repositories are not easily comparable / have no commits in exact sync with each other, so I'd just like to delete all the files and copy in the updated versions. For ease of viewing the git history, I don't want every file to be marked as changed. The commit should be a reasonably nice diff between the copied in files and the previous commit.

Author:Andy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54584290/how-to-repeat-a-checkout-after-changing-crlf-to-lf-only
yy