https://www.orchest.io/ logo
Title
e

Eliezer de Souza da Silva

10/25/2021, 12:37 PM
Is it possible to import new project using only subfolders of a github repository?
r

Rick Lamers

10/25/2021, 12:44 PM
Not in a nice way necessarily. The options you have are: • If self-hosted through commands:
cd orchest/userdir/projects
and
git clone \
  --depth 1  \
  --filter=blob:none  \
  --sparse \
  <https://github.com/cirosantilli/test-git-partial-clone> \
;
cd test-git-partial-clone
git sparse-checkout set d1
• Upload that subfolder manually through File Manager > "projects" ◦ Create project directory:
my-project
◦ Upload your manually downloaded subfolder (e.g.
d1
) in the newly created (empty) project directory. More information about sparse checkouts in `git`: https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/52269934#52269934
In the future we might add support for "sparse checkouts" in the GUI too.
1
e

Eliezer de Souza da Silva

10/25/2021, 12:45 PM
Cool, thanks for letting me know!