How to install GIT on Windows, MacOS and Linux

In the following tutorial you will learn the simplest way to install GIT on different operating systems: Windows, MacOS and Linux. Let’s get to it!

Install Git on Windows

On Windows, you just have to download the installer and run it. Follow these simple steps to do it:

  1. the GIT installer for Windows.
  2. Once you have downloaded the installer, double click on the executable to start the installation process and follow the instructions that will appear on the screen. Like any other program, you will have to give “Next” (next) repeatedly until the option appears “Finish” (finish) to complete the installation.
  3. Now you have to open the command prompt and type the following commands in the terminal: git config –global user.name “Your name” git config –global user.email “example@email.com”

    Remember that you must change Your name Y example@email.com for your information.

And ready! You have already installed GIT on Windows.

Install Git on macOS

There are many ways to install on a Mac. In fact, there’s a good chance GIT is already installed on your machine if you have XCode installed. Run the following command in terminal to check if it’s already installed:

git –version

If you have output like git version 2.12.0 (Apple Git-66), then you’re in luck. But if this is not the case, follow the steps below:

  1. the official installer for Mac.
  2. Follow the instructions that will appear in the installation program.
  3. Upon completion of the installer installation process, check back using the command git –version to confirm if the installation was successful.
  4. Now run the following commands in the terminal to configure your email and username that are associated with your Git account: git config –global user.name “Your name” git config –global user.email “example@email. com”

    remember to replace Your name Y example@emial.com and add your account information.

See also  Looking for a WordPress menu plugin? We tell you which are the 8 best

Install Git on Linux

If you are a Linux user, you may be used to installing software and packages using the commands apt-get either yum install. GIT is no exception.

For Ubuntu/Debian users (apt-get):

  1. Open the terminal and run the following commands: sudo apt-get update sudo apt-get install git
  2. Verify that the installation was successful using the command: git –version.
  3. Next, run the following commands in the terminal in order to configure your email and username that are associated with your Git account: git config –global user.name “Your name” git config –global user.email “example@ email.com”.

    remember to change Your name Y example@email.com for your GIT account data.

Fedora (yum/dnf):

You can install packages from Git using both yum and dnf.

  1. Open terminal and run the following commands: sudo dnf install git sudo yum install git
  2. Verify that the installation was successful by running the code: git –version.
  3. Run the following commands in the terminal to configure your email and username associated with your Git account: git config –global user.name “Your name” git config –global user.email “example@email.com”

    Don’t forget to replace Your name Y example@email.com for your account details.

conclusion

Done, this is how Git is installed on different operating systems. If you have any questions, you can contact us in the comments section.

You may be interested in checking out our .

Gustavo is passionate about creating websites. He focuses on the application of SEO strategies at for Spain and Latin America, as well as the creation of high-level content. When he is not applying new WordPress tricks you can find him playing the guitar, traveling or taking an online course.

Loading Facebook Comments ...
Loading Disqus Comments ...