how to avoid getting ^M in file? <p>I don't know why it appears in my file when using vim. Sometimes not in the vim, but in the output of 'git diff', why?</p> <p>what command can help me check if file under some dir have '^M' problem, and fix all of them?</p>