Posts

Showing posts with the label Git Configuration - System level

Configuring Git in your computer

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to configure Git in your computer. After you install Git, we can add or update several properties to Git configuration files. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. This post will focus on Git configuration. So let's get started. Configuring Git Now the git is installed on system and we will see how we configure them. Git provides three different configuration stores. 1) System level configuration It is stored in  /etc/gitconfig  or  C:\Program Files(x86)\Git\etc\gitconfig This git configuration is applied to the entire computer that is installed on and you can access it using git config --system 2) User level configuration The second level is user level. We can access it using  git config --global . It's global f

Git - config

After we install Git, we do find system level configuration file stored at ..\Git\etc\gitconfig Access it using git config --system We also can add or change User or global level configuration and Repo level configuration files. Open Git bash and type in the below git config --global --list Initially it gives 'Unable to read config file; No such file' git config --global user.name "Malathi Boggavarapu" git config --global user.email "malathi.boggavarapu@evry.com" git config --global --list - shows the global config file that was created with above info. cat ~/.gitconfig - shows the content of file git config --global core.editor vim - default editor which is used for opening files or commiting messages while working on git bash. Ex vim, Notepad, etc git config --global help.autocorrect 1 - Ex: Correct autmatically when we type git statsu git config --global color.ui auto - use colors for differentiating the chanegs in a file.