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 --global user.name "trx"
git config --global user.email chazx@live.com
What could be the issue here?
This is my ~/.gitconfig:
your
~/.gitconfig
is not in the correct format.You don't need to put the commands:
in a file... you need to type them at the terminal.
Delete your
~/.gitconfig
and manipulate it using thegit config
command at the terminal, as explained in the tutorial.These
git config
lines are commands that you should run, not the contents for the config file.