From the course: Git for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring Git

Configuring Git - Git Tutorial

From the course: Git for System Administration

Start my 1-month free trial

Configuring Git

- [Instructor] After we have Git installed, we need to configure it so that the appropriate user, that would be us, gets credit for changes made to files. There's a couple of different ways of storing configurations for Git. System-wide configurations will be stored in the operating system directories. For instance, with Linux, the file is stored in /etc/gitconfig and for Windows, it will be in Program Files\Git\etc\gitconfig. Usually we will set configuration options for the user. In that case, each user has a configuration file. In the case of Linux and Unix, the file will be inside the user's home directory named .gitconfig. For Windows, it's the same. If you're not using one of these two operating systems, you don't have to search online to find this configuration file as we can make changes to it without knowing where it is. I'll cover that in a moment. We can also set configurations at the project level. This configuration file is stored inside the Git Project directory. The…

Contents