Skip to content

Instantly share code, notes, and snippets.

@tovbinm
Created December 20, 2017 04:25
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 tovbinm/15f9379e9adce4db5d0ec4d99095818a to your computer and use it in GitHub Desktop.
Save tovbinm/15f9379e9adce4db5d0ec4d99095818a to your computer and use it in GitHub Desktop.
Apply git patch safely with rejects
git format-patch HEAD~X --stdout > patch
git apply --stat patch
git apply --reject --whitespace=fix patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment