diff --git a/desktop/dev-environments.md b/desktop/dev-environments.md index f96e093a5c..bc4689b45b 100644 --- a/desktop/dev-environments.md +++ b/desktop/dev-environments.md @@ -56,6 +56,22 @@ You can launch the application by running the command `make run` in your VS Code ![Single container Dev environment](/images/dev-env-localhost.png){:width="700px"} +### Create a Dev Environment from a specific branch or tag + +You can create a dev environment from a specific branch (for example, a branch corresponding to a Pull Request) or a tag by adding `@mybranch` or `@tag` as a suffix to your Git URL: + + `https://github.com/dockersamples/single-dev-env@mybranch` + + or + + `git@github.com:dockersamples/single-dev-env.git@mybranch` + +Docker then clones the repository with your specified branch or tag. + +> **Note** +> +> Known issue: when cloning a Git branch using `https://`, you must remove the `.git` suffix at the end of the URL. + ### Recap Let's summarize the tasks we performed so far to start a single container Dev Environment.