GitHub web ui hack to ignore whitespace on diffs
Want to ignore whitespace in GitHub diffs? Just add the ?w=0
querystring to the to diff URL.
Here's a simple "Hello, World!" sample where I added leading whitespace and deleted trailing whitespace in a commit:
Source: David Winterbottom
Written by Steve Jansen
Related protips
2 Responses
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/44093/d42a7264714dee5006b9c99d2567a320.jpeg)
Neat! Thanks for sharing
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/104040/d1229999a7b65405e735a46b60d2e1b2_normal.png)
Thanks for tip!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Github
Authors
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/57823/big_pimpin.jpg)
projectcleverweb
287.8K
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/46943/me_180x180.png)
jjperezaguinaga
89.86K
Related Tags
#github
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#