差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
public:it:git [2025/07/18 13:59] – [Git 原理] oakfire | public:it:git [2025/08/11 11:18] (当前版本) – [Ignore] oakfire | ||
---|---|---|---|
行 39: | 行 39: | ||
==== Ignore ==== | ==== Ignore ==== | ||
* [[http:// | * [[http:// | ||
+ | * 白名单的写法为:< | ||
+ | * | ||
+ | |||
+ | !.gitignore | ||
+ | |||
+ | # whitelist `src` directories and their children, regardless of place | ||
+ | !src/ | ||
+ | !src/**/ | ||
+ | !src/**/*.h | ||
+ | !src/ | ||
+ | |||
+ | !/docs/ | ||
+ | !/docs/*.md | ||
+ | </ | ||
==== Submodule ==== | ==== Submodule ==== | ||
* 参考[[http:// | * 参考[[http:// | ||
行 151: | 行 165: | ||
但对使用者来说, | 但对使用者来说, | ||
考虑找个或弄个简化版的本地版本控制系统, | 考虑找个或弄个简化版的本地版本控制系统, | ||
- | 这篇文章不错:https:// | + | 这篇文章不错:https:// |
- | 这个可借鉴:https:// | + | 这个可借鉴:https:// |
</ | </ | ||