This issue is not same as \"Bad git config file .git/config\", since it failed when using git init
.
It seems there is nothing wrong with /home/mirror/.gitco
Since I came across this when searching for the Malformed value for push.default: simple
error I got when pushing/pulling, I figured other people may as well.
Here's a related question that provides more information for the passer-by (see my answer at the end for more links, too): GIT: Can't Push (Strange Config Issue)
Note in particular that this error seems to be caused by having an older version of Git somewhere. The best solution is to update to the latest version of Git on all machines.
If this is not possible for you, simply run the following commands (as mentioned by @morefromalan):
git config --global push.default matching
or
git config --global push.default upstream
to get rid of the error. This changes the default behavior of push
operations as described HERE. You may have to to this for pull
as well as push
, but it seems to be working for me just having changed the default push
behavior to upstream
.
Good luck!