Created
January 8, 2026 12:21
-
-
Save josepsmartinez/9e577b59a29e00abd2076d996c4d991b to your computer and use it in GitHub Desktop.
Clean changes on whitespacing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| git diff --name-only | while read file; do | |
| git diff -w --quiet "$file" && \ | |
| git checkout "$file"; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment