git commands

git –version

This will give us version of git if it is installed and error if git does not exist

The .gitconfig file is an important configuration file used by Git which plays a crucial role in customizing Git's behavior at a user-specific or system-wide level.

git config --global –list

This lists all configurations at the global level

git config --global user.name "John Doe"

git config --global user.email [email protected]

This sets your name and email globally

Last updated