Credential config
Setting Git username for every repo
Set username
git config --global user.name "Mona Lisa"
Confirm that you have set the Git username correctly:
git config --global user.name
Setting Git username for one repository
Go inside the work project
cd /path/to/work/directory
Set username
git config user.name "Mona Lisa"
Confirm that you have set the Git username correctly:
git config user.name
Store password and id
Before a clone or a pull, do this command to store credentials
git config --global credential.helper store