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.
95
votes
ekafyi
shared this idea
-
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