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 ...

Get Git for Humans 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.