add email git not working

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

Also in C++: