Skip to content

Instantly share code, notes, and snippets.

@taras
Forked from Integralist/git apply gist diff.sh
Last active October 13, 2015 21:08
Show Gist options
  • Save taras/c22e9ac386181d821cbd to your computer and use it in GitHub Desktop.
Save taras/c22e9ac386181d821cbd to your computer and use it in GitHub Desktop.
Stash a `git diff` to gist to abort an upgrade but not loose your progress

Not every Ember upgrade goes as planned. Back out - to fight another day, by stashing your WIP to a Gist.

Installation

gem install gist

Login

gist --login

Send a diff to gist

git diff | gist -p -f wip-upgrade.diff # -> returns a url, save the url to later restore your diff

Apply your diff from gist

curl <gist_url> | git apply

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment