How to keep empty folders in Git with .gitkeep calendar_today Dec 3, 2026 timer Reading time ~1 minute Related Articles git Creating empty folders in git with .gitkeep Git doesn't track empty folders. Here's how the .gitkeep file lets you commit an empty directory and keep your project's folder structure. « Git cannot see your empty folder You're using two Git commands for this »