Skip to main content

Timeline for Make 'git diff' ignore ^M

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
May 3, 2017 at 18:55 comment added deddebme This question was above how to hide ^M in git diff, not about how to not put in ^M in the first place. That means the accepted answer of changing core.autocrlf is not the best because it silently alters the files without user's confirmation.
Feb 27, 2015 at 3:07 history edited Rufflewind CC BY-SA 3.0
add equivalent way of specifying config
Feb 27, 2015 at 3:06 comment added Rufflewind This worked for me on Windows 7, although I just put it under [core] so I can replace the core. prefix with a TAB character.
Dec 23, 2014 at 21:27 comment added Kevin McCarpenter Two ways to do this: one, add the line above verbatim to your .gitconfig either in .git/config, or in ~/.gitconfig; two, git config --global core.whitespace cr-at-eol (where --global is optional if you just want it on the repo you're on)
Feb 12, 2014 at 20:22 comment added Dennis for whatever reason this did not work for me. Tried it both with = and no = sign. git diff still shows ^M characters.
Jul 3, 2012 at 17:48 history edited user142162 CC BY-SA 3.0
deleted 42 characters in body
Mar 13, 2012 at 15:32 comment added Rijk Yep, this made the git diff tool (also used in git show) stop bugging me about the ^Ms on the changed lines! :)
May 19, 2010 at 15:47 history edited Vladimir Panteleev CC BY-SA 2.5
deleted 9 characters in body; added 4 characters in body
May 19, 2010 at 15:39 history answered Vladimir Panteleev CC BY-SA 2.5