Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Git on Windows 10

Download Git for Windows, choose the setup options and check the install.

Windows Hosting2 min read7 screenshots

What Git is

Git is a free, distributed version control system. It tracks every change in your files, lets you work in branches, stage your changes before a commit, and merge the work of many people.

Install

Step 1: Open the Git website. Go to git-scm.com.

The official Git website

Step 2: Download the installer for Windows (64-bit).

Downloading Git for Windows

Step 3: Run the installer. Accept the license and choose the install folder.

Choosing the Git location

Step 4: Choose the components and options.

Selecting components
  • Default editor. Pick the editor Git uses for commit messages, such as Visual Studio Code or Notepad.
  • Line ending conversion. Keep the default (checkout Windows-style, commit Unix-style).
  • Integration with your environment. Choose how Git is added to the PATH. The recommended choice is Git from the command line and also from 3rd-party software.
  • Other options, such as the default branch name (main), can stay at their defaults.
    The Git setup options

Step 5: Install. Click Install and wait, then click Finish.

Installing Git

Check the install

Open Command Prompt or Git Bash and run:

git --version
The Git version

First setup

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

Why use Git

  • Version control. See and undo changes.
  • Collaboration. Use branches and pull requests.
  • Works offline. Commit on your own computer.

Quick recap

  • Download from git-scm.com and run the installer.
  • Keep the recommended PATH option.
  • Check with git --version, then set your name and email.