Git: Removing carriage returns from source-controlled files

后端 未结 4 537
北恋
北恋 2020-12-24 00:22

I\'ve got a Git repository that has some files with DOS format (\\r\\n line endings). I would like to just run the files through dos2unix (which wo

4条回答
  •  孤独总比滥情好
    2020-12-24 01:23

    If your list of version controlled files includes binaries, or you can't change history easily... here is a handy dandy one-liner:

    https://unix.stackexchange.com/a/365679/112190

提交回复
热议问题