how to set global github username and password in git

C++
$ git config --global credential.helper wincred
Source

Also in C++: