RSSAmplifier

On the Web on joe blubaugh · Jun 30, 2025

Why would you use .gitkeep?

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

I’ve been using Git for 9 years now, and today was the first time I knowingly encountered a file named .gitkeep in a diff. “What’s the point of this empty file?”, I thought. Quickly realizing that the idea is to track an empty directory, I started to wonder “Why would you want to make sure a directory exists when there’s nothing to put there?” and I…

Read on /blog/2025_06_gitkeep/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.