From a9f0aebc04d2897b008e3ab221e5d2f4bd4b644c Mon Sep 17 00:00:00 2001 From: suneshone <867566815@qq.com> Date: Tue, 12 Dec 2023 09:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Egitignore=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Home.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Home.md b/Home.md index 4e1b801..3510148 100644 --- a/Home.md +++ b/Home.md @@ -21,6 +21,13 @@ git push origin master ``` > 不过需要在远程仓库的服务器上添加ssh公钥。 +#### 如何忽略不需要版本控制的文件? +GitHub 有一个十分详细的针对数十种项目及语言的 .gitignore 文件列表, 你可以在[https://github.com/github/gitignore](https://github.com/github/gitignore) 找到它。 + +在最简单的情况下,一个仓库可能只根目录下有一个 .gitignore 文件,它递归地应用到整个仓库中。 然而,子目录下也可以有额外的 .gitignore 文件。子目录中的 .gitignore文件中的规则只作用于它所在的目录中。 + + + ### git安装 1. [下载git](https://git-scm.com/),阅读[书籍](https://git-scm.com/book/zh/v2)。