Skip to content

Instantly share code, notes, and snippets.

@sarthakgupta072
Last active October 1, 2018 13:42
Show Gist options
  • Save sarthakgupta072/545bf25aee4ff78d6b6ee13b7a00dc86 to your computer and use it in GitHub Desktop.
Save sarthakgupta072/545bf25aee4ff78d6b6ee13b7a00dc86 to your computer and use it in GitHub Desktop.
Git installation Instructions for Git Workshop 2018

Installing Git on Windows

For installing Git on a Windows operating system, first download it from this page Download Git for 64 bit and 32 bit Windows OS and then follow the instructions on this page except the first step Step wise instructions to install Git on Windows

Installing Git on Linux

Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git

You can use Git now.

Red Hat-based linux systems

Open a terminal. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

sudo yum upgrade
sudo yum install git

You can use Git now.


Installing Git on a Mac

Open a terminal window.

Step 1 – Install Homebrew

Homebrew […] simplifies the installation of software on the Mac OS X operating system.

Homebrew – Wikipedia

Copy & paste the following into the terminal window and hit Return.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 – Install Git

Copy & paste the following into the terminal window and hit Return.

brew install git

You can use Git now.

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