Skip to Content

Git

Git is an open source version control application. Git is used to manage the source code of a project, track changes, and collaborate with other developers.

Table of Contents

Verify Git Installation

You may already have Git installed on your computer. To check if you have Git installed, open a terminal and run the following command:

terminal
git version

If the command is successful, you should see the version number of Git that you installed something like this:

terminal
$ git version git version 2.37.3.windows.1

If you have Laragon installed, you can also use Laragon’s Terminal (Menu > Laragon > Terminal).

Laragon Terminal

Downloading Git

If you don’t have Git installed, you can use one of the package manager or download and install it manually from git-scm.com.

Option 1: Using choco

Open your terminal as Administrator

  • Press Windows Key + X and select Windows PowerShell (Admin) or Command Prompt (Admin).
  • Click Yes if prompted by the User Account Control dialog.

Install Git using the command:

terminal
choco install git -y
Note

The -y flag automatically accepts all prompts, making the installation seamless.

Option 2: Using scoop

Open your Terminal

  • You don’t need to run Terminal as Administrator.

Install Git using the command

terminal
scoop install git

Option 3. Using Homebrew

Open your Terminal

Install Git using the command

terminal
brew install git

Option 4: Install Manually

Download Git

You can download git for your operating system from the links below:

Git Download

Run installation wizard

Once downloaded, open the downloaded file, follow the installation wizard and click Next, Next, Next... .

Setup - Initial View

Git Welcome page

💡
Tip

After installing, it may also ask to restart your computer.

You can now start Configuring Git or continue installing other tools and comeback later.

If you need additional assistance installing Git, you can find more information in the ProGit chapter on installing Git.

Notes

  • Both Chocolatey and Scoop will handle adding Git to your system’s PATH variable, so you can use Git from any command line.

  • To update Git in the future, use:

    • Chocolatey: choco upgrade git
    • Scoop: scoop update git
    • Homebrew: brew upgrade git
Last updated on