Introduction
The .gitconfig file stores settings that control how Git behaves on your computer. It helps you customize Git to work the way you want, like setting your name, email, and preferred text editor.
When you want to set your name and email so your commits show who made them
When you want to change the default text editor Git uses for commit messages
When you want to set up aliases to shorten long Git commands
When you want to configure Git to use colors in the terminal for easier reading
When you want to set global settings that apply to all your Git projects