GIT: Não é possível enviar por push (problema de configuração estranha)
Estou em uma nova instalação do Linux Mint.
Estou recebendo o seguinte erro ao tentar enviar de qualquer repositório:
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.
Isso é muito estranho, porque eu definitivamente tenho uma versão que suporta o simples comportamento de envio.
A saída degit --version
égit version 1.8.3.2
.
O conteúdo de~/.gitconfig
:
[user]
name = My Name
email = [email protected]
[color]
ui = true
[push]
default = simple
Aqui é onde fica assustador.
Se eu mudar o comportamento paramatching
(ou paranothing
, tracking
oucurrent
, nesse caso) e, em seguida, tente enviar, recebo a mesma mensagem de erro exata. Como isso é possível? Está armazenando em cache a configuração de alguma forma? Eu até tentei reiniciar. Eu até tentei remover completamente o GIT do sistema (e excluir~/.gitconfig
) e depois reinstalá-lo.
Se eu excluir o[push]
seção completamente do arquivo .gitconfig (ou se eu excluir o arquivo completamente), tente empurrar e recebo o seguinte:
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.
... então parece serambos reconhecendo que não escolhi um comportamento de empurrar, mas também dizendo que escolhi um comportamento não suportado. o que esta acontecendo aqui?
Eu até recebo o erro se eu excluir~/.gitconfig
completamente.
Alguém pode me ajudar com essa bruxaria?
Obrigado!
EDITAR:
Aqui está um.git/config
Arquivo 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