Visual Studio Code Does NOT Come With Git Installation by Default
When we use Visual Studio 2015 or 2017, we see the Git feature is provided by default. At least, we do not need to install Git separately, Git can be installed with Visual Studio together. When new cross platform supported Visual Studio Code came, we thought it will come with Git together by default. But actually it is NOT. At least, in current newest version 1.19.3.
We checked Visual Studio Code official information here, seems they mentioned "Visual Studio Code has integrated source control and includes Git support in-the-box". What does this mean ? We finally realized that might mean Visual Studio Code supports Git, but they did not say they will install for you automatically with Visual Studio Code package together ?
So, when we open a new project or new folder, we see the screen below:
Git not found. Install it or configure it using the ‘git.path’ setting
And also the following output:
Then we will have to download Git manually from here.
By the way during we installed Git, we set one step as below:
Use VisualStudioCode as Git’s default editor (but maybe you do not need to change the default since Visual Studio Code will use Git Path to load Git)
After the Git installed, you have to restart Visual Studio Code, and then you will see the output window like this:
It means Git is installed and Visual Studio Code is ready to use it. What you will do next is settings a git repository (ie: a folder in Windows)