我刚刚创建了一个Github存储库,并且想知道.gitignore文件是什么。 我开始不是创建一个,而是添加一个,因为大多数存储库有一个。 我需要一个吗? 可以/我只是忽略它,还是有用? 我做了一些关于这个问题的研究,但是找不到具体的解释。
I just created a Github repository and was wondering what the .gitignore file was for. I started by not creating one, but added one due to the fact that most repositories have one. Do I need to have one? Can/do I just ignore it, or does it have a use? I did some research on the subject but couldn't find a concrete explanation.
最满意答案
.gitignore告诉git它应该忽略哪些文件(或模式)。 它通常用于避免从工作目录提交对其他协作者无用的临时文件,例如编译产品,IDE创建的临时文件等。
您可以在这里找到完整的详细信息。
.gitignore tells git which files (or patterns) it should ignore. It's usually used to avoid committing transient files from your working directory that aren't useful to other collaborators, such as compilation products, temporary files IDEs create, etc.
You can find the full details here.
更多推荐
发布评论