Gitkeep data
File type: Various data file
A .gitkeep file is a placeholder used to keep an otherwise empty directory in a Git repository. It follows a user-established convention, not a special Git file format.
File type category:
Various data file
Date updated: November 23, 2026
Git does not track empty directories. Committing a placeholder file in a directory gives Git a file to track, so the directory remains represented in the repository. The name .gitkeep is customary, but Git does not require that name.
A .gitkeep file is often empty, and its contents have no defined format. It is not an official Git format; it is a convention used with Git.
Open a .gitkeep file with any text editor on your platform. It is often empty, so the editor may show a blank document; Git uses it as a tracked placeholder rather than as a file to interpret.
Conversion is unnecessary because a .gitkeep file has no defined data format. If it is an empty placeholder, keep it as-is and commit it to the Git repository.