Skip to content

Instantly share code, notes, and snippets.

@gregmercer
Last active March 22, 2019 18:13
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 gregmercer/1ac332687a066b3c98d9eff94573e161 to your computer and use it in GitHub Desktop.
Save gregmercer/1ac332687a066b3c98d9eff94573e161 to your computer and use it in GitHub Desktop.
apply patches
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