I know this question has been asked a million times, but my ~/.gitconfig consists of only two lines, that are character correct with the tutorial.
git config
These git config lines are commands that you should run, not the contents for the config file.