Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.83 KB

01-installation.md

File metadata and controls

76 lines (47 loc) · 1.83 KB

Installation

To manage git repositories on your local machine you need to have git installed locally.

Here's how to install git on major desktop operating systems.

Windows

Using winget (this tool is available on Windows 10 and up)

winget install --id Git.Git -e --source winget

You can also download a binary package from here.

Linux

Install the git package using your distribution's package manager.

Here are some major distributions examples.

Debian | Ubuntu

sudo apt install git

Fedora | RedHat

sudo dnf install git

openSUSE

sudo zypper i git

Arch | Manjaro | Endavour

sudo pacman -S git

macOS

  • If you have brew installed, use the following command.

    brew install git
  • If you don't, download it from Xcode

  • If have MacPorts installed use the following command.

    sudo port install git

Identity configurtion

The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:

git config --global user.name "Full Name"
git config --global user.email "[email protected]"

Configuring your identity assigns your name and email to each commit you make on your machine, we'll talk about commits and blame later on, but do the configuration now so Git won't get confused when you make a commit, you don't wanna upset Git, do you?