How To Download Git On A Mac

You can’t use Git until you make it available on your computer. There are a couple different ways you can install Git and make it available for use. The option you choose will depend on the system you are running.

In this article, I will show you how to install Git on a MAC OS, as well as how to install Git on LINUX.

A couple of things you will want to make note of while interacting with Git.

  1. Even if you already have Git installed it is a good idea to update to the latest version.
  2. All of the commands below should work, even on the older versions of Git. They may act a little differently but should work. Git is very good at preserving backward compatibility. Any version after 2.0 should work just fine.

Atom is free to download and runs on Linux, OS X and Windows with support for plug-ins written in Node.js and embedded Git Control. It is based on Electron (formerly known as Atom Shell),a framework for building cross-platform apps using Chromium and Node.js. Install Git on Mac with Git Tutorial, Git Introduction, Git, What is Git, GitHub, What is GitHub, Git vs GitHub, Git Mercurial, Installation of Git for Windows, Installation Git for Ubuntu, Git Environment Setup, Git Command Line Tools, Git Tools, etc. Choose the download option for Mac OS X. The installer file will download to your system.

How To Install Git on MAC OS

There are a couple of ways to install Git on MAC OS. The easiest way to do it would probably be to install the Xcode Command Line Tools. This will work on Mavericks (10.9) or above, so it should cover you. If you are running on OS older than that I would recommend you look into upgrading that first.

If your MAC OS is good to go simply run git from the Terminal the very first time. Here is what that would look like:

If it isn’t installed you will be prompted to install. If it is installed, then the above command should output the current version installed.

If you need or want a more up-to-date version, then you can install Git on MAC OS via a binary installer. There is a MAC OS Git installer that is maintained and made available for download on the Git website, at https://git-scm.com/download/mac.

Finally, a third option of installing Git on MAC OS is to install it as part of the GitHub for MAC install.

They have a GUI Git tool that has an option to install command line tools as well. You can download this tool from the GitHub for MAC website, at https://mac.github.com.

How To Install Git on Linux

More often than not you can install Git on Linux via a binary installer through the package management tool that comes with your distribution.

If you’re on Fedora or other closely related RPM-based distribution, like RHEL or CentOS, you can use dnf:

$ sudo dnf install git-all

If you happen to be on a Debian-based distribution, like Ubuntu, try using apt:

Installation For Other Unix Distributions

Gentoo

# emerge –ask –verbose dev-vcs/git

Arch Linux

openSUSE

# zypper install git

Mageia

Nix/NixOS

# nix-env -i git

FreeBSD

Solaris 9/10/11 (OpenCSW)

# pkgutil -i git

Solaris 11 Express

OpenBSD

# pkg_add git

Alpine

Slitaz

$ tazpkg get-install git

Author: Jeremy Holcombe

Growing up in Hawaii, Jeremy started his freelance writing career doing resumes, business plans, article writing, and everything in between. He now specializes in online marketing and content writing and is part of the Content Marketing Team at GreenGeeks.

Was this article helpful?

Related Articles

Introduction: How to Install GitHub for Mac

Why install GitHub for Mac? The command line interface can be intimidating, hard to use, and you have to memorize all the commands. Additionally, GitHub has some specific features that are not part of Git. In this tutorial, we will install GitHub for Mac, a nice a free GUI for Git / GitHub.

Step 1: Download GitHub for Mac

First go to Mac.GitHub.com and click the download button, but first make sure you have Mac OS X 10.9 or later. You can't download with an earlier version of OS X.

Step 2: Move to Applications Folder

After the zip archive download, GitHub will appear in your downloads folder. Drag and drop into your Applications folder. Double click and open.

How To Download Git On A Macbook Pro

Step 3: Verify, Login, and Configure

How To Download Git On A Mac Download

Gitbash

Be patient. Verification only takes a few moments. Once you are verified you will connect to GitHub by logging into your GitHub account. Then you will configure your Git to identify you and the commits you make so that everyone else knows who you are and what you are doing. Anyone will be able to see your Git config and associated information. Then just find the local repositories you want to work on and you are good to go.

Be the First to Share

Recommendations

13 2.1K
Inchworm Robot - Modular, Move Allsides With BT App in Robots
21 1.8K
3D Printed Arduino Powered Quadruped Robot in Arduino
  • Hand Tools Only Challenge

  • Modify It Speed Challenge

  • Potato Speed Challenge