Mam repozytorium, które ma inny zdalny upstream
oprócz origin
. Mogę zrobić git checkout origin/master
, ale gdy uruchamiam git checkout upstream/master
, otrzymuję:Oddział kasowy na innym zdalnym
error: pathspec 'upstream/master' did not match any file(s) known to git.
To nie działa albo:
$ git fetch upstream
From https://github.com/getsentry/sentry
* branch HEAD -> FETCH_HEAD
$ git co -b asdf --track upstream/master
fatal: Cannot update paths and switch to branch 'asdf' at the same time.
Did you intend to checkout 'upstream/master' which can not be resolved as commit?
Jak sprawdzić oddziały na upstream
odległy jak ja na origin
pilocie? Moja wersja git to 2.1.2.
Nie działa: 'fatal: Nie można aktualizować ścieżek i przełączać się na gałąź 'asdf' w tym samym czasie. Czy masz zamiar dokonać "upstream/master", którego nie można rozwiązać jako commit? '. – fossilet
@fossilet Czy możesz sprawdzić, czy 'git fetch upstream master: nazwa_grupy' działa dla ciebie? Sprawdź http://stackoverflow.com/a/1614996/1860929 –
Działa ... ale dlaczego? – fossilet