3 ms·
> "checkout just a subtree of the monorepo" How do I check out, eg https://github.com/neovim/neovim/tree/master/scripts https://github.com/neovim/neovim/tree/m
by fragmede 2y ago
> "checkout just a subtree of the monorepo"
How do I check out, eg https://github.com/neovim/neovim/tree/master/scripts https://github.com/neovim/neovim/tree/master/scripts into a directory and work with it as if it was a repo unto itself?
- nolist_policy 2y agoYou 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.