Toot

Written by Curtis "Ovid" Poe (he/him) on 2024-12-28 at 09:07

Sometimes you want to just have an empty directory in git, but not commit any files in it.

touch data/.gitkeep

And add this to your .gitignore:

data/*

!data/.gitkeep

Then commit. Now you have an "empty" directory.

[#]git #programming

=> More informations about this toot | View the thread | More toots from ovid@fosstodon.org

Mentions

Tags

=> View git tag | View programming tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113729658789934257
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
225.471738 milliseconds
Gemini-to-HTML Time
0.898605 milliseconds

This content has been proxied by September (3851b).