$ brew install git. Apple ships a binary package of Git with Xcode. Binary installer. Tim Harper provides an installer for Git. The latest version is 2.27.0, which was released 3 months ago, on 2020-07-22. Building from Source. If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.28.0. Install Git on Mac OS X Install Git on Windows Install Git on Linux. Getting Started. Setting up a repository. Git init git clone git config git alias. Git add git commit git diff git stash.gitignore. Inspecting a repository. Git status git tag git blame. The Command Line. My Rec ommendation for The Command Line. My Recommendation for The. There is a MAC OS Git installer that is maintained and made available for download on the Git website, at 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.
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.
- Even if you already have Git installed it is a good idea to update to the latest version.
- 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.
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.
Git Bash For Mac Os X
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
Git Install For Mac Os X
openSUSE
# zypper install git
Mageia
Nix/NixOS
# nix-env -i git
FreeBSD
Solaris 9/10/11 (OpenCSW)
# pkgutil -i git
Solaris 11 Express
OpenBSD
Git For Mac Os X
# 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
GitX
Git For Mac Os X 10.10
GitX is a git GUI made for Mac OS X. It currentlyfeatures a history viewer much like gitk and a commit GUI like git gui. Butthen in silky smooth OS X style!
Features
- Detailed history viewer
- Nice commit GUI, allowing hunk- and line-wise staging
- Fast workflow
- Explore tree of any revision
- Nice Aqua interface
- Paste commits to gist.github.com
- QuickLook integration
Requirements
GitX runs on Mac OS X 10.5 Leopard and Mac OS X 10.6 Snow Leopard. Because it uses features like Garbage Collection, you can't compile it on earlier systems. GitX also requires a fairly recent Git -- version 1.6.0 and higher are all supported.
Download
The newest version of GitX is 0.7. This version can be downloaded from here. To see what has changed, read the Release History.
After starting GitX, you can install the command-line tool through the menu (GitX->Enable Terminal Usage…). This will install a 'gitx' binary in /usr/local/bin.