Ned Batchelder on Nostr: Git won't track empty directories (because at heart it only tracks files). Common ...
Git won't track empty directories (because at heart it only tracks files). Common advice is to add a '.gitkeep' file so the directory isn't empty and git will make the directory.
EVEN BETTER ADVICE: put a README in the directory explaining what the empty directory is for and what will eventually be there.
Published at
2026-02-25 19:59:55 UTCEvent JSON
{
"id": "ce49b0357561de1da2a6a4fc8f9e71a9f265d42297b0a30ca4f719e76618cd56",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1772049595,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/116133042317745806",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Git won't track empty directories (because at heart it only tracks files). Common advice is to add a '.gitkeep' file so the directory isn't empty and git will make the directory.\n\nEVEN BETTER ADVICE: put a README in the directory explaining what the empty directory is for and what will eventually be there.",
"sig": "d330bd18e5a19f9325b9c5675ae8015b34359f9c9be74aee6d07179d37360e2af0b5cdf0ec336fcb3de7d1977f8f8c1d0c39397ca79bbf50010ad674a6665b17"
}