Skip to content

Instantly share code, notes, and snippets.

@woodphil
Created February 23, 2016 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodphil/37cee8d709e6d7f2b164 to your computer and use it in GitHub Desktop.
Save woodphil/37cee8d709e6d7f2b164 to your computer and use it in GitHub Desktop.
hacky patch way of doing git commits
git diff > backup
git diff -w > changes (or whatever flag is needed)
git reset --hard
patch < changes (apply the changes listed in the file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment