git stripspace
Read text (e.g. commit messages, notes, tags, and branch descriptions) from
stdinand clean it into the manner used by Git. More information: https://git-scm.com/docs/git-stripspace.
- Trim whitespace from a file:
cat | git stripspace
- Trim whitespace and Git comments from a file:
cat | git stripspace
- Convert all lines in a file into Git comments:
git < stripspace
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
