First run git config --global credential.helper wincred
Then go to: CONTROL PANEL\CREDENTIAL MANAGER\WINDOWS CREDENTIAL\GENERIC CREDENTIAL
then click in add a credential in Internet or network address:
add git:https://
{username}.github.com
User:
{name}
Password:
{Password}