add new chinese translations
This commit is contained in:
24
pages.zh/common/git-check-ignore.md
Normal file
24
pages.zh/common/git-check-ignore.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# git check-ignore
|
||||
|
||||
> 分析和调试 Git 忽略/排除 (".gitignore") 文件。
|
||||
> 更多信息:<https://git-scm.com/docs/git-check-ignore>。
|
||||
|
||||
- 检查一个文件或目录是否被忽略:
|
||||
|
||||
`git check-ignore {{path/to/file_or_directory}}`
|
||||
|
||||
- 检查多个文件或目录是否被忽略:
|
||||
|
||||
`git check-ignore {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- 使用来自 `stdin` 的路径名,每行一个:
|
||||
|
||||
`git check-ignore --stdin < {{path/to/file_list}}`
|
||||
|
||||
- 不检查索引(用于调试为什么路径被跟踪而不被忽略):
|
||||
|
||||
`git check-ignore --no-index {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- 包含每个路径匹配模式的详细信息:
|
||||
|
||||
`git check-ignore --verbose {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
Reference in New Issue
Block a user