Attention: This method saves the credentials in plaintext on your disk. Everyone on your computer can access it, e.g. malicious NPM modules.
git config --global credential.helper store