Eclipse and Windows newlines

前端 未结 6 2163
天命终不由人
天命终不由人 2020-11-29 15:43

I had to move my Eclipse workspace from Linux to Windows when my desktop crashed. A week later I copy it back to Linux, code happily, commit to CVS. And alas, windows newlin

6条回答
  •  一生所求
    2020-11-29 16:10

    To recursively remove the carriage returns (\r) from the CVS/* files in all child directories, run the following in a unix shell:

    find ./ -wholename "\*CVS/[RE]\*" -exec dos2unix -q -o {} \;
    

提交回复
热议问题