How to install git on windows 11? (step by step)

Getting your Git Windows 11 (or for Windows 10) client software

Gitbash is free software, that can be accessed as follows,

  • Go to the official download URL https://git-scm.com/downloads
  • Click on the link for Windows (Download for Windows)
  • Wait for the download to complete.

At this point, you have the required software client for Git installation for your Windows laptop or desktop.

Run the installer, follow the below sequence

  • Double click the downloaded exe file to start the installer (example file name: Git-X.xx.xx-64-bit.exe).
  • If Windows is prompting with “User Access Control“, for confirmation to proceed, select Yes.
  • Next leaf, keep all default values as it is, and click Next.
  • Under the Select components leaf, go through the checklist, and modify it according to your preferences.
  • Keep the selections as it is if you are unsure of any options.
  • Leaf, Choosing the SSH executable, keep bundled OpenSSH. This will get you the SSH capability from Gitbash.
  • Leaf, configuring experimental option, keep those defaults.
  • Click Next to continue with the installation.
  • Click on Finish when prompted, to complete the installation.

Cloning a repository, git getting started

  • At this point, you should have Git (gitbash) installed. Let’s explore, how to clone a repository.
  • From your Windows 10 Desktop, right-click and click Git Bash Here.
  • You should get a git bash window, similar to the below.
admin@codetryout MINGW64 ~/Desktop
$
  • To clone a git repository using the gitbash command line,
git clone https://github.com/githubtraining/hellogitworld.git

Gitbash – git clone demo – from a GitHub public repository.

Here is a quick demo, cloning – git clone https://github.com/githubtraining/hellogitworld.git to the Windows 11 Desktop.

Similarly, you can choose a location of your choice to clone your repositories and open them using VScode or your favorite IDEs.

With this guide, you have successfully installed git bash on Windows 11 (64-bit version), and cloned a sample repository!

Happy coding with your vscode and GitBash.

You may explore further git commands here in Codetryout!