Re:A Git story: Not so fun this time
by nolist_policy on Wednesday July 03, 2024 @04:22PM
(#40869629)
You can't (since commits are snapshots of the repo root). You can have this approximation however:
git clone --filter=blob:none --sparse https://github.com/neovim/neovim
cd neovim
git sparse-checkout add scripts
Unfortunately, GitHub does not support --filter=sparse:oid=master:scripts, so blobs will be fetched on demand as you use the repo.
How do I check out, eg https://github.com/neovim/neovim/tree/master/scripts into a directory and work with it as if it was a repo unto itself?