Last active
March 22, 2019 18:13
-
-
Save gregmercer/1ac332687a066b3c98d9eff94573e161 to your computer and use it in GitHub Desktop.
apply patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
two methods | |
------------------------ | |
git apply --ignore-space-change --ignore-whitespace mychanges.patch | |
patch -p1 < example.patch | |
also use these git configs | |
------------------------------ | |
git config --global core.whitespace trailing-space,space-before-tab | |
git config --global apply.whitespace fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment