Chapter 2: Basics

IF YOU’RE JUST STARTING TO LEARN GIT, I recommend sticking to the command line, at least at first. Git’s command-line interface is its native tongue. Typing commands and seeing the responses Git gives back is a great way to learn about how Git actually works, which will pay off when you inevitably run into a confusing situation down the road. The command line is also consistent across the various platforms Git runs on. If you know how to interact with Git via commands, you’ll be able to use Git no matter what kind of computer you’re on.

The command-line interface gives you the fullest access to all of Git’s powers, but there are also graphical ...

Get Git for Humans now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.