Zuletzt aktiv 9 months ago

設定 Git 忽略不需版本控制的檔案,同時追蹤指定例外檔案,優化版本管理流程。

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