Before going to run any git operations we have to do some configurations on your local system.
It is used to set configuration values on global or local project levels.
π Global: For all projects on your local system.
π Local: For all projects on a directory
So letβs do it.
Open the terminal and run the following commands.
If you want to configure git globally follow below instuction:
#Set the User name
git config --global user.name "name"
#Set the email-ID
git config --global user.email "Git-Hub email-Id"
#To list all the configurations
git config --list
If you want to configure git locally follow below instuction:
# Set the User name
git config --local user.name ""
#Set the email-ID
git config --local user.email ""
#To list all the configurations
git config --list
We are now ready to use Git.
Hope this was helpful βοΈ
Recommended for you
π How to Install Git on Your Local System Step-by-Step Guide for Beginners