RESOURCES

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 user.email, with the given <value>, such as david@demaree.me. 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 ...

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.