Git Bash For Mac
Note: Due to the use of nodejs instead of node name in some distros, yarn might complain about node not being installed. A workaround for this is to add an alias in your.bashrc file, like so: alias node=nodejs.This will point yarn to whatever version of node you decide to use. If Yarn is not found in your PATH, follow these steps to add it and allow it to be run from anywhere. Mac OS X: Windows: Linux/Unix: Older releases are available and the Git source repository is on GitHub. Latest source Release 2.28.0 Release Notes (2020-07-27) Download Source Code. Git comes with built-in GUI tools (git-gui, gitk). $ 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 2 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. Git for Mac Installer The easiest way to install Git on a Mac is via the stand-alone installer: Download the latest Git for Mac installer. Follow the prompts to install Git. Open a terminal and verify the installation was successful by typing git -version: $ git -version git version 2.9.2. Git comes with built-in GUI tools for committing and browsing , but there are several third-party tools for users looking for platform-specific experience.If you want to add another GUI tool to this list, just follow the instructions. All Windows Mac Linux Android iOS.
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.
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
Git Bash For Mac
# 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
Git Bash Commands For Mac
Git comes with built-in GUI tools for committing (git-gui) and browsing (gitk), but there are several third-party tools for users looking for platform-specific experience.
Git Bash For Mac Install
If you want to add another GUI tool to this list, just follow the instructions.
SourceTree
Platforms: Mac, Windows
Price: Free
License: ProprietaryGitHub Desktop
Platforms: Mac, Windows
Price: Free
License: MITTortoiseGit
Platforms: Windows
Price: Free
License: GNU GPLGit Extensions
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPLGitKraken
Platforms: Linux, Mac, Windows
Price: Free / $29 / $49
License: ProprietaryMagit
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPLSmartGit
Platforms: Linux, Mac, Windows
Price: $79/user / Free for non-commercial use
License: ProprietaryTower
Platforms: Mac, Windows
Price: $79/user (Free 30 day trial)
License: ProprietaryGitUp
Platforms: Mac
Price: Free
License: GNU GPLGitEye
Platforms: Linux, Mac, Windows
Price: Free
License: Proprietarygitg
Platforms: Linux, Windows
Price: Free
License: GNU GPLungit
Platforms: Linux, Mac, Windows
Price: Free
License: MITgit-cola
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPLCycligent Git Tool
Platforms: Linux, Mac, Windows
Price: Free
License: Proprietarygiggle
Platforms: Linux
Price: Free
License: GNU GPLGitbox
Platforms: Mac
Price: $14.99
License: ProprietaryAurees
Platforms: Linux, Mac, Windows
Price: Free
License: ProprietaryFork
Platforms: Mac, Windows
Price: $49.99, free evaluation
License: ProprietaryWorking Copy
Platforms: iOS
Price: Free with in-app purchases
License: ProprietaryCodeReview
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPLgmaster
Platforms: Windows
Price: Beta / Free for non-commercial use
License: ProprietaryGit2Go
Platforms: iOS
Price: Free with in-app purchases
License: ProprietaryGitAhead
Platforms: Linux, Mac, Windows
Price: Free
License: MITPocket Git
Platforms: Android
Price: 1.99€
License: ProprietaryGitDrive
Platforms: iOS
Price: Free with in-app purchases
License: ProprietaryGitX-dev
Platforms: Mac
Price: Free
License: GNU GPLGitBlade
Platforms: Linux, Mac, Windows
Price: Free Lite version, $59.99/user/year for PRO version
License: ProprietaryGuitar
Platforms: Linux, Mac, Windows
Price: Free
License: GNU GPLRepoZ
Platforms: Mac, Windows
Price: Free
License: MITCong
Platforms: Windows
Price: Free
License: ProprietarySublime Merge
Platforms: Linux, Mac, Windows
Price: $99/user, $75 annual business sub, free eval
License: ProprietaryLazyGit
Platforms: Linux, Mac, Windows
Price: Free
License: MITSnailGit
Platforms: Mac
Price: $9.99 / Lite version
License: ProprietaryGitAtomic
Platforms: Windows
Price: 15.00€
License: ProprietaryGitfox
Platforms: Mac
Price: €3.99/m or €24,99/y per user
License: ProprietaryGitFiend
Platforms: Linux, Mac, Windows
Price: Free
License: ProprietaryNitroGit
Platforms: Windows
Price: 20€/user / Free for non-commercial use
License: ProprietaryGitFinder
Platforms: Mac
Price: $24.95
License: ProprietaryVershd
Platforms: Linux, Mac, Windows
Price: Free trial, then $37
License: ProprietaryGitUI
Platforms: Linux, Mac, Windows
Price: Free, but donations welcome
License: MIT
Git Bash For Mac Mojave
There are other great GUI tools available as well. Have a look at the list of interfaces, frontends and tools in the Git Wiki.