Skip to content

Git And GitHub Tips

jimfoltz edited this page Nov 3, 2012 · 12 revisions

Add ?w=1 to GitHub diff urls to ignore whitespace. For example

Before: https://github.com/SketchUp/sketchup-stl/commit/18c8d6e9aaf9d21b81a3b132fd2a76bd5657fa7a

After: https://github.com/SketchUp/sketchup-stl/commit/18c8d6e9aaf9d21b81a3b132fd2a76bd5657fa7a?w=1

Here's some code for a bookmarklet to append ?w=1 to the current url:

javascript: window.location = window.location.protocol + '//' + window.location.hostname + window.location.pathname + '?w=1';

(via http://confreaks.com/videos/1229-aloharuby2012-git-and-github-secrets)


Emoji Cheat Sheet


Clone this wiki locally