Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

git diff ignore whitespace-Git diff -w ignore whitespace only at start & end of lines

Asked by Dan Peters Jul 8, 2021 1.1K views 1 answer
Share

About this question

I love to use git diff -w to ignore whitespace differences. But, I just noticed that it ignores even whitespace differences in the middle of lines. How could I use git diff ignore whitespace to ignore whitespace differences that come at the start (^) or end ($) of lines?

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.