Users can create Dev Env on a given branch (#13095)

* Users can create Dev Env on a given branch

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

* Minor style updates

* Add known bug on branches in https:// git urls with .git suffix

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
Guillaume Tardif 2021-07-08 17:01:16 +02:00 committed by GitHub
parent 6b6bc203bc
commit 4aedf4df77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -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.