Windows

  • Setting up Git on Windows OS is pretty simple.
  • You will need to download the installer from Git website
  • Run the downloaded .exe file.
  • Follow the instructions in Dialog. It is strongly recommended that you keep the default settings.
  • After installation is done. You can manage your git repository by Git GUI or can use Terminal.
  • You can open a terminal/command prompt and check git –version to see if Git in installed correctly.

Mac OS

  • There are different ways to install Git on Mac OS.
  • You can install Git using Homebrew or by downloading the Git installer package from Git website.
Install Git via Homebrew
  • If Homebrew is already installed you can skip these steps and move to Install Git
Install Homebrew
  • Go to the Homebrew website
  • Copy and paste the command on that page, under Install Homebrew into a terminal
  • Follow steps. You might need to enter Password.
  • Once done. You can install Git using Brew
Install Git
brew install git
Install Git via Package Installer
  • Go to the Git website and download the current installer for your operating system.
  • Double click on the downloaded file to begin the install.
  • Click on the Continue button to begin the install
  • Follow Instructions. Once done.
  • You can open a terminal and check git –version to see if Git in installed correctly.

Linux

Debian and Ubuntu:
sudo apt-get update
sudo apt-get install git
CentOS:
sudo yum install git
Fedora:
sudo yum install git-core
Arch Linux:
sudo pacman -Sy git
Gentoo:
sudo emerge --ask --verbose dev-vcs/git
  • You can open a terminal and check git –version to see if Git in installed correctly.

In next blog we will see how to configure git to Pull a repository along with other commands.

Categories: Git

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.