mirror of https://github.com/docker/docs.git
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:
parent
6b6bc203bc
commit
4aedf4df77
|
|
@ -56,6 +56,22 @@ You can launch the application by running the command `make run` in your VS Code
|
|||
|
||||
{: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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue