📁
EdmundHee
  • Edmund's How to
  • Python
    • Virtual Environment
      • Setup for Windows
      • Setup for Mac
      • How to use VirtualEnvWrapper
  • Git
    • Setup Git Environment
      • Setup Git for Windows
      • Setup Git for Mac
    • Github's How-to
      • Create a repository
      • Repository Branch
      • Update Repository
  • AWS
    • EC2
      • [Raw] EC2 - Recovery Instance
  • Web Development
    • NodeJS
Powered by GitBook
On this page
  • Option 1- HomeBrew ( Recommend )
  • Option 2 - Install Git Using Xcode
  • Option 3 - Install Git with Installer

Was this helpful?

  1. Git
  2. Setup Git Environment

Setup Git for Mac

Option 1- HomeBrew ( Recommend )

Install Homebrew ( Mac User ) - Homebrew

Execute the following command inside terminal

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

The script will download homebrew and install in your mac environment. Once the installation is done, run the following command in your terminal to install git

brew install git

Then check the Git version to verify the installation

git --version

Option 2 - Install Git Using Xcode

If terminal is prefer, we can use Xcode to install command-line tools which includes Git in the package. Run the following command to install

xcode-select --install

Once the installation is done, run the command below to verify the installation

git --version

Option 3 - Install Git with Installer

  1. Download git installer from here ( https://git-scm.com/downloads ).

  2. Leave all the default setting for git installer.

  3. Confirm once again by clicking Install Software.

  4. Once the installation is done, run the command below to verify the installation.

git --version
PreviousSetup Git for WindowsNextGithub's How-to

Last updated 5 years ago

Was this helpful?