Merge pull request #13204 from glours/dev-envs-windows-git-install

add a section to explain how to setup GIT on windows for dev environm…
This commit is contained in:
Usha Mandya 2021-07-21 11:30:16 +01:00 committed by GitHub
commit d0b0621183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,16 @@ To get started with Dev Environments, you must have the following tools and exte
Click **Install** to download and install any missing tools.
### Add Git to your PATH on Windows
If you have already installed Git, and it's not detected properly, run the following command to check whether you can use Git with the CLI or PowerShell:
`$ git --version`
If it doesn't detect Git as a valid command, you must reinstall Git and ensure you choose the option **Git from the command line...** or the **Use Git and optional Unix tools...** on the **Adjusting your PATH environment** step.
![Windows add Git to path](/images/dev-env-gitbash.png){:width="300px"}
## Start a single container Dev Environment
The simplest way to get started with Dev Environments is to create a new environment by cloning the Git repository of the project you are working on. For example, let us create a new Dev Environment using a simple `single-dev-env` project from the [Docker Samples](https://github.com/dockersamples/single-dev-env){:target="_blank" rel="noopener" class="_"} GitHub repository.

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB