Chapter 2: Getting Started with Git
The first step is to install Git. Git’s official website provides detailed instructions on installing Git on your local machine, depending on your operating system.
The easiest way to install Git is through a package manager based on your operating system. Package managers usually have older but more reliable versions of Git.
If you’re using Linux, you can install Git through the terminal using a package manager. For the popular Linux distro Ubuntu, Git can be installed using
apt-get
:apt-get install git
In macOS, if you have Homebrew, you can install Git using the command line through the following command:
brew install git
If you’re on Windows, the official build of Git can be downloaded from the ...
Get Jump Start Git, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.