GIT: No se puede presionar (problema de configuración extraña)
Estoy en una nueva instalación de Linux Mint.
Recibo el siguiente error al intentar enviar desde cualquier repositorio:
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 8 in /home/leng/.gitconfig
fatal: Could not read from remote repository.
Esto es muy extraño, porque definitivamente tengo una versión que soporta el simple comportamiento push.
La salida degit --version
esgit version 1.8.3.2
.
Los contenidos de~/.gitconfig
:
[user]
name = My Name
email = [email protected]
[color]
ui = true
[push]
default = simple
Aquí es donde se pone escalofriante.
Si cambio el comportamiento amatching
(o paranothing
, tracking
ocurrent
, para el caso), luego intento empujar, aparece el mismo mensaje de error exacto. ¿Cómo es eso posible? ¿Está guardando en caché la configuración de alguna manera? Incluso he intentado reiniciar. Incluso he intentado purgar GIT completamente del sistema (y eliminar~/.gitconfig
) luego reinstalarlo.
Si borro el[push]
sección completamente del archivo .gitconfig (o si borro el archivo por completo), luego intento empujar, y luego obtengo esto:
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 8 in /home/leng/.gitconfig
fatal: Could not read from remote repository.
... así que parece serambos reconociendo que no he elegido un comportamiento de empuje, pero también diciendo que he elegido un comportamiento no compatible. ¿Qué demonios está pasando aquí?
Incluso me sale el error si elimino~/.gitconfig
completamente.
¿Puede alguien ayudarme con esta brujería?
¡Gracias!
EDITAR:
Aquí hay un.git/config
archivo solicitado:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://{my remote repo}
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master