Skip to content

Instantly share code, notes, and snippets.

@sn00011
Created September 5, 2012 05:06
Show Gist options
  • Save sn00011/3630846 to your computer and use it in GitHub Desktop.
Save sn00011/3630846 to your computer and use it in GitHub Desktop.
Issues with the '^M' when do git diff

A quick fix:

This needs the AnyEdit plugin installed on Eclipse.

The simple steps are:

  • first select the file or folders in question in the Navigator or in my case PHP Explorer
  • navigate to File -> Convert Line Delimiters To -> Unix (LF, \n, 0A), in the popup window, choose the files/directories you need to fix
  • press ok, and it will be fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment