Skip to content

Instantly share code, notes, and snippets.

@unacceptable
Last active September 24, 2025 00:08
Show Gist options
  • Select an option

  • Save unacceptable/e01d3ae906272f229022365fe5067e03 to your computer and use it in GitHub Desktop.

Select an option

Save unacceptable/e01d3ae906272f229022365fe5067e03 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
git diff | git apply --whitespace=fix
git diff --cached | git apply --cached --whitespace=fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment