git-stripspace
Read text (e.g. tldr-pages
On several platforms
Several platforms
Read text (e.g. commit messages, notes, tags, and branch descriptions) from stdin and clean it into the manner used by Git.
Trim whitespace from a file
cat path/to/file | git stripspaceIdentifyTrim whitespace and Git comments from a file
cat path/to/file | git stripspace --strip-commentsIdentifyConvert all lines in a file into Git comments
git <path/to/file stripspace --comment-linesIdentify