Git Installation

Git Installation

Reference: Git Installation (opens in a new tab)

Install Git on Windows

  1. Go to this link: Download for Windows (opens in a new tab)

  2. Select your installer, for my case, I'm selecting 64-bit Git for Windows Setup.

    alt text

  3. Open the downloaded exe file and follow the instructions. I put all options as default. alt text

  4. After you have done the installation. Open your terminal and enter the following command.

    git --version

    It will show the latest Git version that you have installed.

  5. Configure your Git username and email. Remember to replace the name and email with your own. Any commits you make will include these details.

    git config --global user.name "Kar Chun"
    git config --global user.email "karchuntan.1999@gmail.com"

Install Git on Ubuntu/Linux

The typical way of installing Git, will not install the latest version. With the following commands, it will help you to install the latest Git.

PPA Git (opens in a new tab)

  1. Install stable Git version

    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install -y git
  2. Check Git version

    git --version
  3. Configure your Git username and email. Remember to replace the name and email with your own. Any commits you make will include these details.

    git config --global user.name "Kar Chun"
    git config --global user.email "karchuntan.1999@gmail.com"