daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
10.89k stars 840 forks source link

Create from local git repository #1286

Open Tpuljak opened 3 weeks ago

Tpuljak commented 3 weeks ago

Is your feature request related to a problem? Please describe. Users might already have cloned repositories that they want to use with Daytona, but, currently, Daytona requires a git url and always clones the repo from scratch.

Describe the solution you'd like We should explore the possibility of using user's local git repositories to create workspaces. For example, daytona create . would create a workspace from the repo the user is currently in, configure it and allow the user to open it with daytona code. This feature would make Daytona more flexible to use and especially useful for users with large repos for which the clone operation might take a while.

Additional context Before implementing the feature, we should discuss the approach here.

kevbook commented 2 weeks ago

This is exactly our use case, our data engineering and ML repos typically contain other repos -- submodules and sparse checkouts for interface files, common config files, etc. Sometimes we can just use local devcontainer to work on a project, but some things require a bigger machine, so we can spin up cloud workspace.

https://github.com/loft-sh/devpod is similar that allows us to use cloud compute using local repo.