git config location

C++
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Source

Also in C++: