git set email and name for repo

C++
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]# For setting inside project folder
git config user.name "Neeraj Singh"
git config user.email '[email protected]'
Source

Also in C++: