Kolejny problem z git 1,8:Git 1.8: push błąd: dst bibl Ref/heads/master otrzymuje od więcej niż jednego src
$ git push
error: dst ref refs/heads/master receives from more than one src.
error: failed to push some refs to '[email protected]:xxx.git'
sugestie? Pracował przed uaktualnieniem do wersji 1.8.
$ git remote -v
origin [email protected]:xxx.git (fetch)
origin [email protected]:xxx.git (push)
Po googling wokół Próbowałem ten pierwszy:
$ git push origin :refs/heads/refs/heads/master
remote: warning: Allowing deletion of corrupt ref.
To [email protected]:xxx.git
- [deleted] refs/heads/master
Nie mam pojęcia co to jest i dlaczego jest uszkodzony.
$ git pull
Already up-to-date.
$ git push
error: dst ref refs/heads/master receives from more than one src.
error: failed to push some refs to '[email protected]:xxx.git'
nadal nie działa, ale origin master
nie działa co najmniej:
$ git push origin master
Counting objects: 42, done.
To [email protected]:xxx.git
3e3fc87..6e11d2a master -> master
Dobrze, że niby naprawił ale co było przyczyną problemu zacząć? Dlaczego pochodzenie/mistrz nagle został uszkodzony? Co zrobiłem z git push origin :refs/heads/refs/heads/master
?
.git/config
:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:xx.git
push = HEAD
[branch "master"]
remote = origin
merge = refs/heads/master
ls .git/refs/remotes/origin:
HEAD master refs
W końcu teraz mam zrobić git push origin master
za każdym razem. A najbardziej irytujące jest to, że niektóre repo działają z git push
, ale na większości z nich muszę dodać origin master
, ale nie rozumiem dlaczego i nie może być tak, że jestem sam mając ten problem.
Czy możesz pokazać zawartość twoich sekcji '.git/config'' [zdalnego "pochodzenia"] 'i' [branch "master"] '? Ponadto, 'ls.git/refs/remote/origin ". –
Proszę bardzo, ale to jest po tym, jak go "naprawiłem" – firedev
Mam ten sam problem, z wyjątkiem tego, że nigdy nie miałem refs/heads/refs/heads/anywhere (wyglądało to zarówno po stronie .git /, jak i po stronie serwera). Mam je w globalnej konfiguracji, jak mi zasugerowano: push.default = dopasowanie remote.origin.push = HEAD – mirabilos