.GITIGNORE File Extension

Git Ignore File

Developer Git
Popularity
3.7  |  51 Votes
 

What is a GITIGNORE file?

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.

More Information

Screenshot of a .gitignore file in Microsoft Visual Studio Code
GITIGNORE file open in Microsoft Visual Studio Code

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.

How to open a GITIGNORE file

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.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference GITIGNORE files

All Platforms
Windows
Free
Mac
Free
Linux
Free

Verified by FileInfo.com

The FileInfo.com team has independently researched the Git Ignore file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.