add new chinese translations
This commit is contained in:
16
pages.zh/common/git-stripspace.md
Normal file
16
pages.zh/common/git-stripspace.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# git stripspace
|
||||
|
||||
> 从 `stdin` 读取文本(例如提交信息、笔记、标签和分支描述),并将其清理为 Git 使用的格式。
|
||||
> 更多信息:<https://git-scm.com/docs/git-stripspace>。
|
||||
|
||||
- 从文件中去除空白字符:
|
||||
|
||||
`cat {{path/to/file}} | git stripspace`
|
||||
|
||||
- 从文件中去除空白字符和 Git 注释:
|
||||
|
||||
`cat {{path/to/file}} | git stripspace --strip-comments`
|
||||
|
||||
- 将文件中的所有行转换为 Git 注释:
|
||||
|
||||
`git stripspace --comment-lines < {{path/to/file}}`
|
Reference in New Issue
Block a user