亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱

git-stripspace  - 刪除不必要的空格

概要

git stripspace [-s | --strip-comments]git stripspace [-c | --comment-lines]

描述

從標(biāo)準(zhǔn)輸入中讀取提交消息,注釋,標(biāo)記和分支描述等文本,并按照 Git 使用的方式進(jìn)行清理。

沒有任何爭論,這將會:

  • remove trailing whitespace from all lines

  • collapse multiple consecutive empty lines into one empty line

  • remove empty lines from the beginning and end of the input

  • add a missing \n to the last line if necessary.

在輸入完全由空白字符組成的情況下,不會產(chǎn)生輸出。

注意:這是為了清理元數(shù)據(jù),更喜歡 git-apply [1] 的--whitespace=fix模式來修正版本庫中補(bǔ)丁或文件的空白。

選項(xiàng)

-s   --strip-comments

跳過并刪除所有以注釋字符開頭的行(默認(rèn)#)。

-c   --comment-lines

在每行上添加注釋字符和空白。行將自動以換行符終止。在空行上,只有注釋字符會被預(yù)置。

示例

鑒于以下帶有噪音的輸入,$指示行的結(jié)尾:

|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無參數(shù)來獲?。?/p>

|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.$
Previous article: Next article: