C:\> cmdkey /generic:git:https://github.com /user:ReneNyffenegger /pass:ghp_XXXX…
ghp_
is a Github Personal Access Token (PAT) which can be obtained with this link. githubToken='ghp_…' git config --global credential.helper store echo "https://ReneNyffenegger:$githubToken@github.com" > ~/.git-credentials
C:\> echo https://ReneNyffenegger:ghp_…@github.com > %userprofile%\.git-credentials