Sprawdziłem odpowiednie wątki, ale wciąż nie mogę zrozumieć, co dzieje się za kulisami.Git. Zdalny HEAD jest niejednoznaczny
Kiedy wpisałem git remote show origin
, mam:
* remote origin
Fetch URL: xxxx
Push URL: xxxx
HEAD branch (remote HEAD is ambiguous, may be one of the following):
development
master
Remote branches:
development tracked
master tracked
Local branches configured for 'git pull':
development merges with remote development
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
Ja również sprawdzone git show-ref
i mam:
3f8f4292e31cb8fa5938dbdd406b2f357764205b refs/heads/development
3f8f4292e31cb8fa5938dbdd406b2f357764205b refs/heads/master
3f8f4292e31cb8fa5938dbdd406b2f357764205b refs/remotes/origin/development
3f8f4292e31cb8fa5938dbdd406b2f357764205b refs/remotes/origin/master
Oto lista wszystkich gałęziach mam przez wykonywanie git branch -a
:
development
* master
remotes/origin/development
remotes/origin/master
I to właśnie znajduje się w .git/config:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
ignorecase = true
hideDotFiles = dotGitOnly
autocrlf = false
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = xxxx
push = refs/heads/master:refs/heads/master
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "development"]
remote = origin
merge = refs/heads/development
Wygląda na to, że zdalny program i gałąź główna mają ten sam węzeł. Jak rozwiązać ten problem dwuznaczności?