You can edit the .git/config manually, without using “git config” command.
You can set global configuration for user name and email in ~/.gitconfig.
~/.gitconfig works for all your repository.
If there are two key with the same name in ~/.gitconfig and .git/config, the oldest will be replaced.