Learn how to work with multiple repositories in a single Ona environment
onCreateCommand
allows you to clone additional repositories when your environment starts. This method is particularly useful when you want to maintain the repository setup as part of your Dev Container configuration.
Add an onCreateCommand
entry to your .devcontainer/devcontainer.json
file:
automations.yaml
file:
/workspaces
: Always clone additional repositories to /workspaces/repo-name
(where repo-name
in that example is the name of your repo). Do this to avoid git tracking issues within your main repository/workspaces