[2025-06-26] Recording and Sharing about Independently Development – Rules in “.gitignore” / 独立开发记录与分享 – Rules in “.gitignore”

Independent Development

Rules of .gitignore

There can be multiple .gitignore in a git repository.
Root directory, sub directories, they all can hold its own file.
When used by git, the detail .gitignore, which means the files in sub directories, will take effect first.
And all the rules will be combined.
This gives a lot of convenience to management, especially when different directories are holding different projects or modules.

Main Site(Under building)

Nonpareil Me

Related Platforms

(Github Issues) / (Notion) / (Blog)

Advertisement

(A website to optimize your resume and to boost your career: Nonpareil.me)


独立开发

.gitignore规则

一个Git的Repo中,可以有多个.gitignore文件。
根目录,各级子目录,都可以包含这样一个文件。
Git解析时,会以详细的.gitignore为优先,也就是会优先子文件夹中的.gitignore规则。
所有的规则会被合并生效。
这让项目管理变得方便很多,尤其是每个子文件夹包含了不同的项目或者模块的时候。

主站(建设中)

[Nonpareil Me]{https://nonpareil.me}

相关平台

(Github Issues) / (Notion) / (Blog)

推广

(优化简历,助力职场:Nonpareil.me)

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部