.gitignore
· 427 B · Text
Brut
# 忽略所有的 .log 文件
*.log
# 但是要追踪特定的 log 文件
projectX.log
# 忽略所有 .txt 文件
*.txt
# 但是不要忽略 doc/notes.txt,尽管它也在 *.txt 的范围内
doc/*.txt
# 只在当前目录下忽略 .txt 文件
/path/to/file.txt
# 忽略所有的 .js 和 .json 文件
*.js
*.json
# 但是不要忽略 node_modules 中的所有 js 文件,尽管它也在 *.js 的范围内
node_modules/*
| 1 | # 忽略所有的 .log 文件 |
| 2 | *.log |
| 3 | |
| 4 | # 但是要追踪特定的 log 文件 |
| 5 | projectX.log |
| 6 | |
| 7 | # 忽略所有 .txt 文件 |
| 8 | *.txt |
| 9 | |
| 10 | # 但是不要忽略 doc/notes.txt,尽管它也在 *.txt 的范围内 |
| 11 | doc/*.txt |
| 12 | |
| 13 | # 只在当前目录下忽略 .txt 文件 |
| 14 | /path/to/file.txt |
| 15 | |
| 16 | # 忽略所有的 .js 和 .json 文件 |
| 17 | *.js |
| 18 | *.json |
| 19 | |
| 20 | # 但是不要忽略 node_modules 中的所有 js 文件,尽管它也在 *.js 的范围内 |
| 21 | node_modules/* |
| 22 |