Skip to content

Instantly share code, notes, and snippets.

@tovbinm

tovbinm/git-patch.sh

Created Dec 20, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.