Ответ 1
Вы просто извлекаете upstream/develop
, в то время как вы хотите получить origin
, чтобы < доступно href= "https://github.com/leezhm/openFrameworks/tree/mac8" > origin/mac8
.
Я разблокировал репо из github.com, а также установил удаленный пульт. Ниже мое репо
[ Leezhm LIZHM ~/Developments/OF_GIT ] git remote -v
origin [email protected]:leezhm/openFrameworks.git (fetch)
origin [email protected]:leezhm/openFrameworks.git (push)
upstream https://github.com/openframeworks/openFrameworks.git (fetch)
upstream https://github.com/openframeworks/openFrameworks.git (push)
когда я использовал эту команду
git fetch upstream develop
git merge upstream/mac8
Он всегда получал следующую ошибку:
fatal: 'upstream/mac8' does not point to a commit
Вы просто извлекаете upstream/develop
, в то время как вы хотите получить origin
, чтобы < доступно href= "https://github.com/leezhm/openFrameworks/tree/mac8" > origin/mac8
.
git fetch
git checkout "new brach"
git вытащить "новую ветку"
git слить "новую ветку"
Это сработало для меня
В origin/xxx
, вероятно, нет соответствующей ветки.