.GITIGNORE 文件扩展名

Git Ignore File

开发者 Git
受欢迎程度
3.7  |  56 
 

什么是 GITIGNORE 文件?

A GITIGNORE file is a settings file used by Git, a version control system that allows developers to track source code changes. It contains a list of files that should not be included in the source code repository. GITIGNORE files help developers exclude unwanted items such as hidden operating system files (e.g., .DS_Store and Thumbs.db), temporary files, and project outputs.

更多信息

在 Microsoft Visual Studio Code 中打开的 .gitignore 文件截图
在 Microsoft Visual Studio Code 中打开的 GITIGNORE 文件

GITIGNORE files are standard for all projects tracked with Git, and they use the name .gitignore with no filename prefix. Most often, developers include a single .gitignore file in the project's root directory which specifies all exclusions for the project. However, additional .gitignore files may be placed in subdirectories to apply directory-specific exclusions as well.

Many GITIGNORE templates exist on the web and with developer IDEs, which help bootstrap Git projects for different programming languages and technology stacks. For example, GitHub provides several templates on the gitignore project page.

如何打开 GITIGNORE 文件

You can open and edit GITIGNORE files with any text editor. Source code editors, such as Microsoft Visual Studio Code, provide syntax highlighting to assist with editing.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 GITIGNORE 文件的程序

All Platforms
Windows
免费
Mac
免费
Linux
免费
分类: 开发者
更新时间: 2024-09-10

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Git Ignore 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们