The Wayback Machine - https://web.archive.org/web/20240909065515/https://www.geeksforgeeks.org/how-to-install-git-on-windows-command-line/
Open In App

How to Install Git on Windows Command Line?

Last Updated : 02 Jun, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Git is an open-source and free, decentralized version control system designed to handle projects of all sizes with speed and efficiency. Basically, it is a software tracking application that is commonly used to monitor projects across several teams. The best way of downloading and installing Git on the windows command line is to download it from its official site. Lets learn the step for the same,

Steps to download and install Git on Windows

Downloading

Step 1: Go to the official website: https://git-scm.com

Step 2: Click on 64-bit Git for Windows Setup and allow the download to complete.

Official-site-of-git

 

Extract and Launch Git Installer

Step 3:  Go to your download location and double-click the file to launch the installer.

Step 4: Allow the app to modify your device by selecting Yes in the User Account Control window that appears.

Allow-the-app-for-changes

 

Step 5: Check the GNU General Public License and click Next.

Checking-GNU

 

Step 6: Select the install location. If you don’t have a reason to modify it, leave it to default and click Next.

Selecting-install

 

Step 7: A screen for component selection will display. Leave the settings as it is and click Next.

Clicking-next

 

Step 8: The installer asks you to create a start menu folder. Simply click Next.

Creating-a-start-menu

 

Step 9: Choose the text editor you want to use with Git and click Next.

Choosing-text-editor

 

Step 10: The following step allows you to give your original branch a new name. ‘Master’ is the default. Leave the default choice selected and press the Next button.

Giving-branch-new-name

 

Step 11: You can adjust the PATH environment during this installation phase. When you run a command from the command line, the PATH is the default set of folders that are included. Continue by selecting the middle (recommended) option and clicking Next.

Adjusting-path-environment

 

Step 12: The following option concerns server certificates. The default choice is used by the majority of users. Simply click Next.

Choosing-library

 

Step 13: This step deals with how data is structured, and altering this option may create issues. So, it is advised to leave the default selection.

Choosing-default-style

 

Step 14: Select the terminal emulator that you wish to use. Because of its features, the default MinTTY is suggested. Click Next.

Selecting-terminal-emulator

 

Step 15: The installer now prompts you to specify what the git pull command should perform. Leave the default selected option and click Next.

Choosing-git-pull-command

 

Step 16: The next step is to decide which credential helper to employ. Credential helpers are used by Git to retrieve or save credentials. Leave the default selection and click Next.

Deciding-credential

 

Step 17: Although the default choices are suggested, this step allows you to select which additional features to activate. 

Addition-features

 

Step 18: Git offers to install some experimental features. Leave them unchecked and click Install.

Clicking-install

 

Step 19: Once the installation is complete, launch the Git bash.

Launching-git-bash

 


Previous Article
Next Article

Similar Reads

How to Install Git on Windows Subsystem for Linux?
Git is an open-source distributed version control system developed to handle everything from simple to complex projects with performance and speed. Git software allows a team or group of developers to work together, with all using the same files and folders. It gradually reduces the confusion that tends to happen when multiple people are editing th
2 min read
How to use Chocolatey Choco to Install GIT on Windows?
Linux Users do enjoy the advantage of installing hundreds of software with a single command, so In WINDOWS we do have a WINGET package manager built in WINDOWS which is not sufficient so we have CHOCOLATEY so with this we can install most of the software from Spotify to Discord directly from the very genuine repository Prerequisites Install Chocola
1 min read
How to Install GIT on Windows using Putty?
Installing Git in Putty is a straightforward process that allows developers to use Git through the Putty terminal emulator. Git is a version control system that is widely used to manage and track changes in software projects, and the integration with Putty makes it easy to access Git repositories on remote servers. In this guide, we will provide a
5 min read
How to Install Git-crypt on Windows?
Git-crypt is a command-line-based tool for protecting confidential data in Git repositories. A developer typically uses this tool to keep confidential data like passwords, keys, and other personal data in his Git repository. This tool uses symmetric key cryptography. That is, the same key is used for both encrypting and decrypting data. This key is
3 min read
How to Install GIT-TFS on Windows?
GIT-TFS is a tool that allows you to interact with TFS (Team Foundation Server) and enables the use of Git as a client for Microsoft TFS. Using Git commands, it provides a way to access TFS version control, allowing developers to use features to interact with TFS. GIT-TFS provides many features such as cloning TFS repositories, fetching and pushing
2 min read
How to Install Git on Windows Using Chocolatey?
Installing Git on Windows can be a simple process, especially with the help of package managers like Chocolatey. Chocolatey is a package manager for Windows that automates the installation, upgrade, and uninstallation of software. This article will guide you through the steps to install Git on Windows using Chocolatey. Why Use Chocolatey to Install
2 min read
How to Install Sourcetree for GIT in Windows?
Sourcetree is designed to simplify the Interaction with Git repositories which require command lines to work. It is a free GUI(Graphic user interface) that reduces the workload of a user by making it easier to remove a file, discard a file, or commit a file as it manages and visualizes the work live and in an efficient way. We can also view Detaile
2 min read
How to Install NuGet from Command Line on Linux?
NuGet is the package manager for the .NET framework. It's very much useful for developers as developers can create, publish and consume packages. The package format of NuGet consists of a single ZIP file with the extension of .nupkg and which is the DLL compiled code like the package’s version number. A NuGet package manager is a cross-platformed m
2 min read
How to Install and Use Sysdig from Linux Command Line?
Sysdig is a tool that provides administrators and developers with unparalleled insight into their systems' behavior. The team behind it hopes to enhance system-level monitoring and troubleshooting by providing a centralized, coherent, and granular view of the storage, transmission, network, and memory subsystems, as well as the ability to generate
2 min read
How to install VS Code Extensions from Command line?
Microsoft Visual Studio code extensions play an important role in the editor's convenience and workflow. They increase productivity with additional features, language support and tools. They help customize the IDE, increase efficiency and help stay updated with new updates in software development. You can install Visual Studio Code Extensions using
2 min read
How to Install the Windows Subsystem for Linux on Windows 11?
As a programmer, it is very important to test software on multiple platforms. However, it can be very tedious and inefficient to use multiple virtual machines to achieve the same. Thankfully, this process can be simplified if you are using Windows and wish to run a Linux distribution - with WSL. WSL, or Windows Subsystem for Linux, lets developers
2 min read
How to Download and Install Windows Movie Maker on Windows 10?
Movie Maker video is one of the best video editors available on the Microsoft store itself and is free. Movie Maker video editor is a single-OS software, i.e. it works only in Windows, and not on macOS, and Linux. Movie maker has more than 10 million users worldwide. Some of the very cool features of movie maker video editors are that the exports o
3 min read
How to Add GIT Credentials on Windows?
Managing Git credentials on Windows is important for seamless interaction with remote repositories. Whether you're pushing code to GitHub, GitLab, or another Git service, storing your credentials securely can save you from repeatedly entering your username and password. This article will walk you through various methods to add and manage Git creden
2 min read
How to Abort a Command Execution in Command Prompt?
When working in the Command Prompt, there are times when you need to halt a running command immediately. Understanding how to abort command execution in CMD can save you from potential issues and wasted time. In this guide, we'll explore various methods to stop commands, including using `Ctrl+C`, terminating processes, and other effective technique
5 min read
How to Download and Install GIT Lab?
Git Lab is an essential tool for those who are in a project development role. Every organization needs some employees who will develop certain projects for their clients. For this purpose, developers use some very important technical tools. Git Lab is one of them. It has a similar type of work to Git. But it also has some new features. Git Lab is a
3 min read
How to Install GitKraken Git GUI on Linux?
GitKraken is software available for Git. Usually, while developing any software, developers develop certain parts of the project. Then they join the parts of the project using Git software. But for any project many innovations developers should make. For implementing new innovations in code developers should implement branch concepts in Git. in a p
2 min read
How to Install Git in VS Code?
Git is a free and open-source distributed version control system. It is designed to manage every type of project even a small or a large project with good speed and efficiency. It is more focused on distributed development of software so that more developers can have the access to the source code and can modify the application. Features of Git: Per
2 min read
How to Install Git on Termux?
We can use Git in our Android mobiles with the help of Termux. Sometimes we need to work with Git but at that time we may need a laptop to work. So we can use Git in our Android mobiles also using the tool Termux. We can easily install this command-line tool on our mobiles. We will use Android 9 in this article. Prerequisite: You should have the de
2 min read
How to Install GIT on Chrome OS?
Git is a type of version control system. There are two types of version control systems are present. One is Centralised & another one is distributed. Centralized VCs are less effective in nature. So, Distributed VCs now replaced the Centralised version. It is a good example of a distributed version control system. It is used for developing any
3 min read
How To Install Git on CentOS 7?
Git is a type of version control system. There are two types of version control systems are present. One is Centralised and another one is distributed. Centralized VCs are less effective in nature. So, Distributed VCs now replaced the Centralised version. Git is an example of a distributed version control system. It is used for developing any big p
3 min read
How to Install Git-GUI on CentOS?
There are many GUI clients are present for git, but among all of them, GitKraken is widely used. GitKraken is a GUI that provides graphical interfaces which make it easy to understand Git branches. In a big project of IT companies, it is impossible to develop one full project by anyone. So, it is being divided among the team members of a project. T
2 min read
How to Install GIT Lens on VS Code?
Gitlens is a popular open-source extension available for Git. Though it can not be installed independently without VS Code. VS Code is a widely used Ide for various programming languages. Along with these, VS Code can also be used as the terminal of Git. But developers are used Git Bash normally as the terminal. Using Gitlens tool in VS Code helps
2 min read
How to install git-crypt on Ubuntu?
git-crypt encrypts and decrypts data in a git repository in a transparent manner. When you commit a file, it is encrypted, and when you check it out, it is decrypted. With git-crypt, you may freely share a repository that contains both public and private information. git-crypt gracefully degrades, allowing developers without the secret key to clone
1 min read
How To Install "git-gui" on Linux?
Git is a FOSS (Free and Open Source Software) that is used for version control of any set of files, typically, the source code of software projects. Git is a version control system for recording changes in any group of files. During software development, it's generally used to coordinate work among programmers who are working on source code togethe
2 min read
How to Install GIT in Conda?
Anaconda is a free and open-source distribution of the programming languages Python and R programming languages for scientific computing, data processing, and data analytics. It includes Jupyter, Spyder, and a powerful CLI to manage the development environment. Git is a free, open-source, and most popular distributed version control system. It is u
2 min read
How To Install Git on AWS?
Git is a well-known distributed version control system. There are many other distributed version control systems are present, like Mercurial, Bazar, etc but among them, Git is widely used for some of its unique features. Basically Version Control systems are two types. One is Centralised & another one is Distributed. Git is mainly used for impl
2 min read
How to Install Git in Cpanel Server?
Among various distributed version control systems, Git is one of the prominent ones. Git is widely used in the world. Developers of certain projects need some help from other team members. Git provides a platform to implement a project with the collaboration of other developers. As Git is open source in nature & easily usable, it is the first c
3 min read
How to Install and Use GIT in Android Studio?
Git is created by Linus Torvald. Git is the most popular Version Control System in the world, used by millions of developers. It helps us to keep track of all the files in a project. Git tracks every change that are made. If we make a mistake, it can reset a file to match a previous version or we can also reset the version of all the project files
4 min read
How to Install Git on Solaris 10?
Git is a free and open source software for distributed version control, originally developed by Linus Torvalds the creator of the Linux kernel in 2005. Solaris is a proprietary Unix operating system originally developed by Sun Microsystems. In this article, we will understand how to install Git on Solaris 10. Features of GitGit is a Distributed dev
2 min read
How to Install Git with Spyder?
Projects in Spyder are integrated with the git version control system, this allows you to commit files and open them or the repository in the gitk GUI right from within Spyder. It should be noted that projects are optional and not imposed on users. You can enjoy all of Spyder’s functionality (session saving, File Explorer, working directory, etc) w
2 min read