Skip to content

Instantly share code, notes, and snippets.

@berinle
Created February 7, 2012 17:16
Show Gist options
  • Save berinle/1760796 to your computer and use it in GitHub Desktop.
Save berinle/1760796 to your computer and use it in GitHub Desktop.
Git tips: creating and applying a patch avoiding white space issues
#create a commit patch, ignoring all white space issues
g format-patch -w -b --ignore-space-at-eol -o /my/patch/destination -1
#apply a patch, ignoring all white space issues
g am --ignore-space-change --ignore-whitespace --whitespace=nowarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment