Sharing small code changes with Git Diff
If you have some work that you want to share with other developers without pushing to a remote branch, send them a diff!
Place it in a file:
git diff --no-color > ~/Desktop/changes.diff
Or to your clipboard (on OS X):
git diff --no-color | pbcopy
The --no-color option creates a plaintext diff. Now to try out a remote diff (could be a Gist, for example), curl and apply it:
curl -s YOUR_PATCH_URL.diff | git apply
A more in depth explanation of git diff can be found on Git Tower's website.






