Git TutorialLesson 4Free preview
Git Config
This lesson is part of Git · All levels
Summary
Git configuration is stored at three levels: system (for all machine users), global (for one user), and local (for one repository). The local level is the most specific and outperforms the other levels. The user.name and user.email identities must be filled in so that each commit can be correctly identified.
Key points
- Configuration levels: --system, --global, and --local
- Git config --list --show-origin displays all the configurations and sources
- User.name and user.email must be filled before commit
- The user's global configuration file is at ~/.gitconfig
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.