The global option remotes.git_credentials is used to set the git credentials.

Usage,
git_credentials()