Open a Git Bash terminal.
# Set user name
> git config --global user.name "John Doe"
# Set email
> git config --global user.email "john.doe@email.com"
Set password
> git config --global user.password "not_123456"
# Permanently store credentials
> git config --global credential.helper store
Thanks to GeeksForGeeks.