I’m following the instructions to setup Git at https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
The document states to run the following from the
$ stands for "prompt". You should'nt actually write it; its only purpose is to indicate where to begin the command.
$
You should write them separately.
git config --global user.name "John Doe"
(Press enter) then
git config --global user.email johndoe@example.com