新增gitignore文件描述

suneshone 2023-12-12 09:12:40 +08:00
parent 247df815f7
commit a9f0aebc04
1 changed files with 7 additions and 0 deletions

@ -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)。