//add username
git config --global user.name "your_username"
//add email
git config --global user.email "your_email_address@example.com"
//check configuration
git config --global --list
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config
# Get system value
$ git config --system --get https.proxy
$ git config --system --get http.proxy
# Get global value
$ git config --global --get https.proxy
$ git config --global --get http.proxy
# Check configuration for your user
$ cat $HOME/.gitconfig
# Unset system value
$ git config --system --unset https.proxy
$ git config --system --unset http.proxy
# Unset global value
$ git config --global --unset https.proxy
$ git config --global --unset http.proxy
Follow the steps mentioned inside the below link:
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
Git config path: C:UsersUSER_NAMEAppDataLocalProgramsGitetc