O'Reilly logo

Git for Humans by David Demaree

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 will turn the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required