Return to site

Downloading Git For Mac

broken image


Open the command prompt 'terminal' and type git version to verify Git was installed. Note: git-scm is a popular and recommended resource for downloading Git on a Mac. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git. How to Download and Install Git on macOS Mac OS X Sierra,Mojave mac OS macOS version is the thirteenth major release of macOS previously OS X, Apple Inc.' S desktop and server operating system for.

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:

  1. Download the latest Git for Mac installer.

  2. Follow the prompts to install Git.

  3. Open a terminal and verify the installation was successful by typing git --version:

  4. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  5. (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper.

Install Git with Homebrew

Git download mac os
Download

If you have installed Homebrew to manage packages on OS X, you can follow these instructions to install Git:

  1. Open your terminal and install Git using Homebrew:

  2. Verify the installation was successful by typing which git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  4. (Optional) To make Git remember your username and password when working with HTTPS repositories, install the git-credential-osxkeychain helper.

Install Git with MacPorts

If you have installed MacPorts to manage packages on OS X, you can follow these instructions to install Git:

  1. Open your terminal and update MacPorts:

  2. Search for the latest available Git ports and variants:

  3. Install Git with bash completion, the OS X keychain helper, and the docs:

  4. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  5. (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper.

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.

  1. If you followed the MacPorts or Homebrew instructions above, the helper should already be installed. Otherwise you'll need to download and install it. Open a terminal window and check:

    If you receive a usage statement, skip to step 4. If the helper is not installed, go to step 2.

  2. Use curl to download git-credential-osxkeychain (or download it via your browser) and move it to /usr/local/bin:

  3. Make the file an executable:

  4. Configure git to use the osxkeychain credential helper.

    The next time Git prompts you for a username and password, it will cache them in your keychain for future use.

Installing git on mac

Install Git with Atlassian Sourcetree

Sourcetree, a free visual Git client for Mac, comes with its own bundled version of Git. Photoshop downloads for mac free downloads. 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:

  1. From your terminal install XCode's Command Line Tools (if you haven't already):

  2. Install Homebrew.

  3. Using Homebrew, install openssl:

  4. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  5. To build Git run make with the following flags:

Install Git on Windows

Git for Windows stand-alone installer

  1. Download the latest Git for Windows installer.

  2. When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.

  3. Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).

  4. Run the following commands to configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  5. Optional: Install the Git credential helper on Windows

    Bitbucket supports pushing and pulling over HTTP to your remote Git repositories on Bitbucket. Every time you interact with the remote repository, you must supply a username/password combination. You can store these credentials, instead of supplying the combination every time, with the Git Credential Manager for Windows.

Install Git with Atlassian Sourcetree

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 Linux

Debian / Ubuntu (apt-get)

Git packages are available via apt:

Download Git For Macbook Pro

  1. From your shell, install Git using apt-get:

  2. Verify the installation was successful by typing git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

Fedora (dnf/yum)

Git packages are available via both yum and dnf:

  1. From your shell, install Git using dnf (or yum, on older versions of Fedora):

    or

  2. Verify the installation was successful by typing git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create

Build Git from source on Linux

Debian / Ubuntu

Git requires the several dependencies to build on Linux. These are available via apt:

  1. From your shell, install the necessary dependencies using apt-get:

  2. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  3. To build Git and install it under /usr, run make:

Fedora

Download Git For Mac

Git requires the several dependencies to build on Linux. These are available via both yum and dnf:

  1. From your shell, install the necessary build dependencies using dnf (or yum, on older versions of Fedora):

    or using yum. For yum, you may need to install the Extra Packages for Enterprise Linux (EPEL) repository first:

  2. Symlink docbook2X to the filename that the Git build expects:

  3. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  4. To build Git and install it under /usr, run make:

Next up:

Setting up a repository

Start next tutorial

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.

If you want to add another GUI tool to this list, just follow the instructions.

  • SourceTree

    Platforms: Mac, Windows
    Price: Free
    License: Proprietary

  • GitHub Desktop

    Platforms: Mac, Windows
    Price: Free
    License: MIT

  • TortoiseGit

    Platforms: Windows
    Price: Free
    License: GNU GPL

  • Git Extensions

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • GitKraken

    Platforms: Linux, Mac, Windows
    Price: Free / $29 / $49
    License: Proprietary

  • Magit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • SmartGit

    Platforms: Linux, Mac, Windows
    Price: $79/user / Free for non-commercial use
    License: Proprietary

  • Tower

    Platforms: Mac, Windows
    Price: $79/user (Free 30 day trial)
    License: Proprietary

  • GitUp

    Platforms: Mac
    Price: Free
    License: GNU GPL

  • GitEye

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • gitg

    Platforms: Linux, Windows
    Price: Free
    License: GNU GPL

  • ungit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • git-cola

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • Cycligent Git Tool

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • giggle

    Platforms: Linux
    Price: Free
    License: GNU GPL

  • Gitbox

    Platforms: Mac
    Price: $14.99
    License: Proprietary

  • Aurees

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • Fork

    Platforms: Mac, Windows
    Price: $49.99, free evaluation
    License: Proprietary

  • Working Copy

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • CodeReview

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • gmaster

    Platforms: Windows
    Price: Beta / Free for non-commercial use
    License: Proprietary

  • Git2Go

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • GitAhead

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • Pocket Git

    Platforms: Android
    Price: 1.99€
    License: Proprietary

  • GitDrive

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • GitX-dev

    Platforms: Mac
    Price: Free
    License: GNU GPL

  • GitBlade

    Platforms: Linux, Mac, Windows
    Price: Free Lite version, $59.99/user/year for PRO version
    License: Proprietary

  • Guitar

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • RepoZ

    Platforms: Mac, Windows
    Price: Free
    License: MIT

  • Cong

    Platforms: Windows
    Price: Free
    License: Proprietary

  • Sublime Merge

    Platforms: Linux, Mac, Windows
    Price: $99/user, $75 annual business sub, free eval
    License: Proprietary

  • LazyGit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • SnailGit

    Platforms: Mac
    Price: $9.99 / Lite version
    License: Proprietary

  • GitAtomic

    Platforms: Windows
    Price: 15.00€
    License: Proprietary

  • Gitfox

    Platforms: Mac
    Price: €3.99/m or €24,99/y per user
    License: Proprietary

  • GitFiend

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • NitroGit

    Platforms: Windows
    Price: 20€/user / Free for non-commercial use
    License: Proprietary

  • GitFinder

    Platforms: Mac
    Price: $24.95
    License: Proprietary

  • Vershd

    Platforms: Linux, Mac, Windows
    Price: Free trial, then $37
    License: Proprietary

  • GitUI

    Platforms: Linux, Mac, Windows
    Price: Free, but donations welcome
    License: MIT

Git On Mac

2.6.3

If you have installed Homebrew to manage packages on OS X, you can follow these instructions to install Git:

  1. Open your terminal and install Git using Homebrew:

  2. Verify the installation was successful by typing which git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  4. (Optional) To make Git remember your username and password when working with HTTPS repositories, install the git-credential-osxkeychain helper.

Install Git with MacPorts

If you have installed MacPorts to manage packages on OS X, you can follow these instructions to install Git:

  1. Open your terminal and update MacPorts:

  2. Search for the latest available Git ports and variants:

  3. Install Git with bash completion, the OS X keychain helper, and the docs:

  4. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  5. (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper.

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.

  1. If you followed the MacPorts or Homebrew instructions above, the helper should already be installed. Otherwise you'll need to download and install it. Open a terminal window and check:

    If you receive a usage statement, skip to step 4. If the helper is not installed, go to step 2.

  2. Use curl to download git-credential-osxkeychain (or download it via your browser) and move it to /usr/local/bin:

  3. Make the file an executable:

  4. Configure git to use the osxkeychain credential helper.

    The next time Git prompts you for a username and password, it will cache them in your keychain for future use.

Install Git with Atlassian Sourcetree

Sourcetree, a free visual Git client for Mac, comes with its own bundled version of Git. Photoshop downloads for mac free downloads. 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:

  1. From your terminal install XCode's Command Line Tools (if you haven't already):

  2. Install Homebrew.

  3. Using Homebrew, install openssl:

  4. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  5. To build Git run make with the following flags:

Install Git on Windows

Git for Windows stand-alone installer

  1. Download the latest Git for Windows installer.

  2. When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.

  3. Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).

  4. Run the following commands to configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

  5. Optional: Install the Git credential helper on Windows

    Bitbucket supports pushing and pulling over HTTP to your remote Git repositories on Bitbucket. Every time you interact with the remote repository, you must supply a username/password combination. You can store these credentials, instead of supplying the combination every time, with the Git Credential Manager for Windows.

Install Git with Atlassian Sourcetree

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 Linux

Debian / Ubuntu (apt-get)

Git packages are available via apt:

Download Git For Macbook Pro

  1. From your shell, install Git using apt-get:

  2. Verify the installation was successful by typing git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:

Fedora (dnf/yum)

Git packages are available via both yum and dnf:

  1. From your shell, install Git using dnf (or yum, on older versions of Fedora):

    or

  2. Verify the installation was successful by typing git --version:

  3. Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create

Build Git from source on Linux

Debian / Ubuntu

Git requires the several dependencies to build on Linux. These are available via apt:

  1. From your shell, install the necessary dependencies using apt-get:

  2. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  3. To build Git and install it under /usr, run make:

Fedora

Download Git For Mac

Git requires the several dependencies to build on Linux. These are available via both yum and dnf:

  1. From your shell, install the necessary build dependencies using dnf (or yum, on older versions of Fedora):

    or using yum. For yum, you may need to install the Extra Packages for Enterprise Linux (EPEL) repository first:

  2. Symlink docbook2X to the filename that the Git build expects:

  3. Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):

  4. To build Git and install it under /usr, run make:

Next up:

Setting up a repository

Start next tutorial

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.

If you want to add another GUI tool to this list, just follow the instructions.

  • SourceTree

    Platforms: Mac, Windows
    Price: Free
    License: Proprietary

  • GitHub Desktop

    Platforms: Mac, Windows
    Price: Free
    License: MIT

  • TortoiseGit

    Platforms: Windows
    Price: Free
    License: GNU GPL

  • Git Extensions

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • GitKraken

    Platforms: Linux, Mac, Windows
    Price: Free / $29 / $49
    License: Proprietary

  • Magit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • SmartGit

    Platforms: Linux, Mac, Windows
    Price: $79/user / Free for non-commercial use
    License: Proprietary

  • Tower

    Platforms: Mac, Windows
    Price: $79/user (Free 30 day trial)
    License: Proprietary

  • GitUp

    Platforms: Mac
    Price: Free
    License: GNU GPL

  • GitEye

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • gitg

    Platforms: Linux, Windows
    Price: Free
    License: GNU GPL

  • ungit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • git-cola

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • Cycligent Git Tool

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • giggle

    Platforms: Linux
    Price: Free
    License: GNU GPL

  • Gitbox

    Platforms: Mac
    Price: $14.99
    License: Proprietary

  • Aurees

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • Fork

    Platforms: Mac, Windows
    Price: $49.99, free evaluation
    License: Proprietary

  • Working Copy

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • CodeReview

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • gmaster

    Platforms: Windows
    Price: Beta / Free for non-commercial use
    License: Proprietary

  • Git2Go

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • GitAhead

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • Pocket Git

    Platforms: Android
    Price: 1.99€
    License: Proprietary

  • GitDrive

    Platforms: iOS
    Price: Free with in-app purchases
    License: Proprietary

  • GitX-dev

    Platforms: Mac
    Price: Free
    License: GNU GPL

  • GitBlade

    Platforms: Linux, Mac, Windows
    Price: Free Lite version, $59.99/user/year for PRO version
    License: Proprietary

  • Guitar

    Platforms: Linux, Mac, Windows
    Price: Free
    License: GNU GPL

  • RepoZ

    Platforms: Mac, Windows
    Price: Free
    License: MIT

  • Cong

    Platforms: Windows
    Price: Free
    License: Proprietary

  • Sublime Merge

    Platforms: Linux, Mac, Windows
    Price: $99/user, $75 annual business sub, free eval
    License: Proprietary

  • LazyGit

    Platforms: Linux, Mac, Windows
    Price: Free
    License: MIT

  • SnailGit

    Platforms: Mac
    Price: $9.99 / Lite version
    License: Proprietary

  • GitAtomic

    Platforms: Windows
    Price: 15.00€
    License: Proprietary

  • Gitfox

    Platforms: Mac
    Price: €3.99/m or €24,99/y per user
    License: Proprietary

  • GitFiend

    Platforms: Linux, Mac, Windows
    Price: Free
    License: Proprietary

  • NitroGit

    Platforms: Windows
    Price: 20€/user / Free for non-commercial use
    License: Proprietary

  • GitFinder

    Platforms: Mac
    Price: $24.95
    License: Proprietary

  • Vershd

    Platforms: Linux, Mac, Windows
    Price: Free trial, then $37
    License: Proprietary

  • GitUI

    Platforms: Linux, Mac, Windows
    Price: Free, but donations welcome
    License: MIT

Git On Mac

Upgrade Git On Mac

There are other great GUI tools available as well. Have a look at the list of interfaces, frontends and tools in the Git Wiki.





broken image