In this tutorial, you will learn how to install GIT bash on all operating systems such as Windows, macOS, and Ubuntu. Let’s get started.
Table Of Contents
Git is a remote control system created to track all project source code updates and changes. It is designed to help all project managers to store and track all changes with commits. So they can go back to any change that already happened before.
Anyway, let’s install git bash on Windows operating system.
Install Git Bash on Windows
To install git bash on the windows operating system, you have to navigate to the official page and download the git installer.
Once you download it, click on the installer double-click and start the installation process.
It will show you a screen containing some information about the installer license. Just click on the “next” button to move forward.
It will show you another screen containing the destination location. You can change the location of the git package by clicking on the “browse” button. But I recommend you, keep the default option and click on the “next” button.
In the next screen, it will show you options for the program components.
Just remain the default, and click on the “Next” button.
On the next screen, you will see an option to select the default editor for the git bash. Just select the first option “Use vim as the default git editor“.
This screen shows you options to adjust your path environment. Just keep it with the recommended option and click on the “next” button.
In the next step, you will see the SSH executable option. Just remain it with the default option.
In the following screen, it will show you another option for the HTTP transport backend. Just keep it with the default option and click on the “Next” button.
On the next screen, it will show you another option to choose the windows command style. Just use the default, so click on the “Next” button.
Once you choose the default options, it would show you the final screen. Just click on the install button like in the below image.
To open git bash, just click on the windows icon and search for git bash. It will open a command line interface.
Also, you can use another program if you have no idea about the git bash commands. It is called git GUI.
To know the current version of git on your machine, just use the following command with the git bash.
Anyway, let’s move to the installation process for the Ubuntu operating system.
Install Git Bash on Ubuntu
In this section, I am going to use the Ubuntu apt package to install the GIT remote system. Let’s do it.
Firstly, you have to update the current Ubuntu package. And that can be done using the terminal, and you have to execute the following command.
git apt update
Then start the git installation process by the following command
git apt install git
To get the current version, you have to run the next git command.
In the following section, I am going to move to another famous operating system to explain how to install git there. Let’s get started.
Install Git Bash on macOS
To install git bash on macOS operating system, you have to navigate to the official page. And start the download process.
Once it finishes, just follow the instructions on the installer screen, then start the installation process.
If you like to install the git control system using the terminal, It is too easy, just run the following command. I will use homebrew.
brew install git
Anyway, let’s move to the git configuration on the local machine.
Configure Git with Email and Username
There are two git commands to define the current user on the local machine which allow this user to be known in each git project.
To configure the username, use the following git command.
git config --global user.name [YOUR NAME HERE]
To configure the email, use the following git command.
git config --global user.email[YOUR EMAIL HERE]
In this tutorial, you understood how to install git on your operating system such as Windows, Ubuntu, and macOS.
Also you learned how to configure git with your local machine.
That’s all, thank you for reading.