There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and may not be up to date with the latest source release.
Homebrew
Install homebrew if you don't already have it, then:
$ brew install git
Sometimes MacPorts also referred to DarwinPorts. It makes the straightforward installation of software on the Mac OS and Darwin operating systems. If we have installed MacPorts for managing packages on OS X, follow the below steps to install Git. Step1: Update MacPorts. Jan 30, 2011.
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. 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. Mar 19, 2013.
Xcode
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.
Install Git on Mac OS X
There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. To find out, open a terminal and enter
git --version .
Apple actually maintain and ship their own fork of Git, but it tends to lag behind mainstream Git by several major versions. You may want to install a newer version of Git using one of the methods below:
Git for Mac Installer
The easiest way to install Git on a Mac is via the stand-alone installer:
![]() Install Git with Homebrew
If you have installed Homebrew to manage packages on OS X, you can follow these instructions to install Git:
Install Git with MacPorts
If you have installed MacPorts to manage packages on OS X, you can follow these instructions to install Git:
Install the git-credential-osxkeychain helper
Bitbucket supports pushing and pulling your Git repositories over both SSH and HTTPS. To work with a private repository over HTTPS, you must supply a username and password each time you push or pull. The git-credential-osxkeychain helper allows you to cache your username and password in the OSX keychain, so you don't have to retype it each time.
Install Git with Atlassian Sourcetree
Sourcetree, a free visual Git client for Mac, comes with its own bundled version of Git. You can download Sourcetree here.
To learn how to use Git with Sourcetree (and how to host your Git repositories on Bitbucket) you can follow our comprehensive Git tutorial with Bitbucket and Sourcetree.
Build Git from source on OS X
Building Git can be a little tricky on Mac due to certain libraries moving around between OS X releases. On El Capitan (OS X 10.11), follow these instructions to build Git:
Install Git on WindowsGit for Windows stand-alone installer
Install Git with Atlassian Sourcetree
Download sms discount for mac. Sourcetree, a free visual Git client for Windows, comes with its own bundled version of Git. You can download Sourcetree here.
To learn how to use Git with Sourcetree (and how to host your Git repositories on Bitbucket) you can follow our comprehensive Git tutorial with Bitbucket and Sourcetree.
Install Git on LinuxDebian / Ubuntu (apt-get)
Git packages are available via apt:
Fedora (dnf/yum)
Git packages are available via both yum and dnf:
Build Git from source on Linux
Debian / Ubuntu
Git requires the several dependencies to build on Linux. These are available via apt:
Git On Mac
Fedora
Git requires the several dependencies to build on Linux. These are available via both yum and dnf:
Install Git Bash On Mac
Git Free DownloadNext up:Setting up a repositoryStart next tutorialComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |