Get the latest tech news

Don't create .gitkeep files, use .gitignore instead (2023)


Git only tracks files, not directories. It will only create a directory if it contains a tracked file. But sometimes you need to “track” a directory, to ensure it exists for fresh clones of a repository. For example, you might need an output directory called build.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Files

Files

Related news:

News photo

Trump Directs US Government To Prepare Release of Files on Aliens and UFOs

News photo

Log files that describe the history of the internet are disappearing. A new project hopes to save them

News photo

Windows 11 Notepad Flaw Let Files Execute Silently via Markdown Links