Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save robertaarcoverde/0bced84ec6e2cb15baeee62ae0b2c6fa to your computer and use it in GitHub Desktop.
Save robertaarcoverde/0bced84ec6e2cb15baeee62ae0b2c6fa to your computer and use it in GitHub Desktop.
Git: stage everything but whitespaces
git diff -w | git apply --cached --ignore-whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment