Skip to content

Instantly share code, notes, and snippets.

@ovidiuch
Created January 26, 2017 12:07
Show Gist options
  • Save ovidiuch/cf25e100582d0bb7bd290659f4c86e59 to your computer and use it in GitHub Desktop.
Save ovidiuch/cf25e100582d0bb7bd290659f4c86e59 to your computer and use it in GitHub Desktop.
Quickly back up git diff without committing work in progress
git diff HEAD > myprecious.patch
mv myprecious.patch ~/Desktop # auto backed on iCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment