Skip to content

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

Comments

I play around with ComfyUI on my computer to make silly images.

To manually install it, you must clone the repo. Then you have to download models into the right place. Where's the right place? Well, there's an empty directory called models. They go in there.

IMO that's an effective use of gitkeep.

It's not.

    echo >repo/models/README.md "this is the directory you place models in"
Is infinitely better.

It could be better sure. In fact I think they use a file called PUT_MODELS_HERE not gitkeep

https://github.com/Comfy-Org/ComfyUI/blob/master/models/diff...

But in any case, that instruction was already in the readme as well.

    echo >repo/models/README.md "this is the directory in which you place models"
x

Pedant

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.