Rich-Harris / degit

Straightforward project scaffolding
MIT License
6.93k stars 242 forks source link

Degit a github subfolder without removing the /tree/main #370

Open noam-honig opened 4 months ago

noam-honig commented 4 months ago

Hi, Love this tool.

I find myself in many cases where I want to degit a subfolder and just copy from the url and do it: npx degit https://github.com/TanStack/table/tree/main/examples/react/filters

But I have to remove the /tree/main for it to work

Is there a quick workaround, or a flag for that?

worlpaker commented 4 months ago

I had a similar problem @noam-honig. That's another reason why I've developed gitty.

After installation, it would work with:

gitty https://github.com/TanStack/table/tree/main/examples/react/filters
noam-honig commented 4 months ago

I had a similar problem @noam-honig. That's another reason why I've developed gitty.

After installation, it would work with:

gitty https://github.com/TanStack/table/tree/main/examples/react/filters

Thanks for that - but for me, I enjoy the zero install npx path