GIT-STRIPSPACE(1) Git Manual GIT-STRIPSPACE(1) (NAME) git-stripspace - (SYNOPSIS) git stripspace [-s | --strip-comments] git stripspace [-c | --comment-lines] (DESCRIPTION) (commit messages) . : o o o o \n . . : . --whitespace=fix git-apply(1) . (OPTIONS) -s, --strip-comments (core.commentChar #) . -c, --comment-lines . . . (EXAMPLES) $ : |A brief introduction $ | $ |$ |A new paragraph$ |# with a commented-out line $ |explaining lots of stuff.$ |$ |# An old paragraph, also commented-out. $ | $ |The end.$ | $ git stripspace : |A brief introduction$ |$ |A new paragraph$ |# with a commented-out line$ |explaining lots of stuff.$ |$ |# An old paragraph, also commented-out.$ |$ |The end.$ git stripspace --strip-comments : |A brief introduction$ |$ |A new paragraph$ |explaining lots of stuff.$ |$ |The end.$ GIT git(1) Git 2.55.0 2026-06-29 GIT-STRIPSPACE(1)