Here is the best place to learn how to install the latest, stable, prepackaged version git on Windows using their package managers. Git can also be compiled from source and installed on any operating system. This guide will walk you through the basics of getting started with Git, from installing the software to using basic commands on both local and remote repositories (repo).
Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Git is the most popular distributed version control and source code management. Its goals include speed, data integrity, and support for distributed, non-linear workflows.
Git for Windows stand-alone installer.
- Download the latest Git for Windows installer and run it. This will open a new window in which you can find all the required information about the software. Click the Next button to proceed.
- Siteground First Image Is Here.
- When you've successfully started the installer, you should see the Git Setup wizard screen. On the next step, you should choose where to install the program.
The default path is "C:\Program Files\Git". If you want the software installed in a different location click the Browse button and specify a different folder.
Click Next when ready to proceed. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.
- Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).
- Run the following commands to configure your Git username and email using the following commands. These details will be associated with any commits that you create:
git config --global user.name "My Name"
git config --global user.email "email@example.com"
You can check your current version of Git by running the git –version command in a terminal (Linux, macOS) or command prompt (Windows).
git version 2.7.4
If you don’t see a supported version of Git, you’ll need to either upgrade Git or perform a fresh install, as described above.