Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mokolabs/54473f7b46cf67e73c953c6986ed407f to your computer and use it in GitHub Desktop.
Save mokolabs/54473f7b46cf67e73c953c6986ed407f to your computer and use it in GitHub Desktop.
Git Add But Ignore Whitespace
git diff -w --no-color | git apply --cached --ignore-whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment