Command Reference

Here’s a quick list of every Git command referenced in this book, plus a few others. Arguments in square brackets (e.g., [thing]) are optional.

git config [--global] <key> <value>

Updates Git’s settings, modifying the preference identified by <key>, such as, with the given <value>, such as The --global flag saves preferences to a file in your home directory, so Git will apply them to every project on your computer. Otherwise they’re saved and applied only within a specific project.

git init

Creates a new Git project inside the current working directory—that is, if you’re inside a directory named my-awesome-project that contains a website you’re working on, running git init will turn the ...

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.