DEV Community

Cover image for How to install GitHub on Mac terminal
Stan ku2ck4
Stan ku2ck4

Posted on • Updated on

How to install GitHub on Mac terminal

Simple Process

It's an easy peasy task to do, just prepare yourself with patience because the first step is quite a bit longer installation process. You will use just a few simple terminal commands.

Install Homebrew

The first and major one is to install Homebrew. Go to https://brew.sh and from the homepage copy main command and paste it into terminal.

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

This first main process is the longest one and you'll wait for installing, downloading, and creating specific directories.

Your OS will ask you for Xcode Tools. To install just press RETURN to continue and enter your system login password. You will see this pop up on the right top side of your desktop then after.

Alt Text

And then just brief notice like this one.

Alt Text

You can see in terminal status info like this.

  Downloading Command Line Tools for Xcode
  Downloaded Command Line Tools for Xcode
  Installing Command Line Tools for Xcode
  Done with Command Line Tools for Xcode
  Done.
Enter fullscreen mode Exit fullscreen mode

After you'll be asked for entering system login password again and get notified in terminal about Homebrew installation process like this.

  ==> Downloading and installing Homebrew...
Enter fullscreen mode Exit fullscreen mode

When the process is done you'll get notified in the terminal window with this message.

  ==> Next steps:
  - Run `brew help` to get started
  - Further documentation: 
      https://docs.brew.sh
Enter fullscreen mode Exit fullscreen mode

Install Git

Now just type these two commands. You simply do this command brew install git.

  brew install git
Enter fullscreen mode Exit fullscreen mode

Check Git Version

When download and installation process will pass you can check the version of your git with git --version

  git --version
Enter fullscreen mode Exit fullscreen mode

Now it seems all is set. You'll see this in your terminal.

  git version 2.24.3 (Apple Git-128)
Enter fullscreen mode Exit fullscreen mode

Enjoy GitHub

After installation, you're ready to use GitHub smoothly. Wish you happy "GitHubing".

Thanks to Goran Ivos for the cover image from Unsplash.

Discussion (0)