Skip to content

Instantly share code, notes, and snippets.

@DevopsvivekS
Forked from derhuerst/intro.md
Created April 18, 2023 09:08
Show Gist options
  • Select an option

  • Save DevopsvivekS/9b2711eff87cdf6156eba8ae4faad51c to your computer and use it in GitHub Desktop.

Select an option

Save DevopsvivekS/9b2711eff87cdf6156eba8ae4faad51c to your computer and use it in GitHub Desktop.
Installing Git on Linux, Mac OS X and Windows

Installing Git on Mac OS X

1. – Install the Command Line Tools

Open a terminal, type the following and press Enter.

xcode-select --install

If this command didn't work, try the following. Otherwise go to step 2.

  1. Go to https://developer.apple.com/downloads/
  2. Login with your Apple ID credentials
  3. Search for command line tools
  4. Find the latest entry, download it and install it

2. – Install Homebrew

Open a terminal, type the following and press Enter.

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

3. – Install Git

Type the following an press Enter.

brew install git

You're done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment