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.