title: Prevent a git commit which just has whitespace reformatting
body: <p>I don't want to commit the code with only position change! Refer to below picture, the content is the same.</p>
  
  <p><a href="https://i.stack.imgur.com/x9z0C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x9z0C.png" alt="Only position changed code"></a></p>
  
  <p>It's not a content change but a meaningless position change which I don't want my code mate waste time on seeing these. In the past, I did it with "Discard" the changes. However, it's definitely not a proper approach since it can take a lot of time doing them.</p>
  
  <p>I tried to search for relevant question and solutions but in vain. Am I the only unlucky guy encounter with this? Thanks for any help!!</p>