Install Git and VS Code on Windows

Francis Edward del Rosario
2 min readMay 11, 2022

Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git is easy to learn and has a tiny footprint with lightning-fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.

In this tutorial, installation of Git and VS Code will be done using Chocolatey software management tool.

Chocolatey is a software management solution unlike anything else you’ve ever experienced on Windows. Chocolatey brings the concepts of true package management to allow you to version things, manage dependencies and installation order, better inventory management, and other features.

Install Chocolatey:

1. First, ensure that you are using an administrative shell — you can also install as a non-admin, check out Non-Administrative Installation.

2. Install with powershell.exe program. With PowerShell, you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.

3. Run the following command.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1'))

4. Reopen PowerShell as administrator and type:

choco install git

5. After installation of Git, it is time to install VS Code. Type the command:

choco install vscode

Excellent! Installation of both Git and VS Code was successful!

References:
https://git-scm.com/

https://chocolatey.org/why-chocolatey

--

--