GIT: Can't Push (Strange Config Issue)
Jestem na świeżej instalacji Linux Mint.
Podczas próby wypchnięcia z dowolnego repozytorium pojawia się następujący błąd:
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.
Jest to bardzo dziwne, ponieważ zdecydowanie mam wersję, która obsługuje proste zachowanie push.
Wyjście zgit --version
jestgit version 1.8.3.2
.
Zawartość~/.gitconfig
:
[user]
name = My Name
email = [email protected]
[color]
ui = true
[push]
default = simple
Tutaj robi się strasznie.
Jeśli zmienię zachowanie namatching
(lubnothing
, tracking
lubcurrent
, w tym przypadku), a następnie spróbuj nacisnąć, otrzymuję ten sam dokładny komunikat o błędzie. Jak to możliwe? Czy to jakoś buforuje konfigurację? Próbowałem nawet ponownie uruchomić komputer. Próbowałem nawet całkowicie usunąć GIT z systemu (i usunąć~/.gitconfig
) a następnie zainstaluj ponownie.
Jeśli usunę[push]
Sekcja całkowicie z pliku .gitconfig (lub jeśli całkowicie usunę plik), spróbuj nacisnąć, a potem to otrzymam:
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.
... tak to wyglądaobie przyznając, że nie wybrałem zachowania pchającego, ale także, że wybrałem nieobsługiwane zachowanie. Co tu się dzieje?
Dostaję nawet błąd, jeśli go usunę~/.gitconfig
całkowicie.
Czy ktoś może mi pomóc w tym czarownictwie?
Dzięki!
EDYTOWAĆ:
Tutaj jest.git/config
żądany plik:
[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