Enable import GitHub repo specific directory
Currently, "Import a repo" (when creating a new workspace) only works for cloning an entire repo.
- ✅ https://github.com/my-username/my-project (valid)
- ❌https://github.com/my-username/my-project/tree/main/examples/blog (not valid)
The ability to import a specific directory/path from a repo would be helpful, since many web frameworks have official examples in directories in a single repo.
Example:
- https://github.com/withastro/astro/tree/main/examples (Astro)
- https://github.com/vercel/next.js/tree/canary/examples (Next.js)
Other online IDEs support this ability, such as Stackblitz, CodeSandbox.
74
votes
![](https://secure.gravatar.com/avatar/e41eafaad2e9df698700e4db13f69de9?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Hi Ekafyi - thanks for sharing this! This is really good feedback. We'll add this to our list of things to consider as part of making broader Git improvements.
Cheers,
Kirupa