12

github.comからリポジトリをフォークし、アップストリームリモートも設定しました。以下は私のリポジトリです

[ Leezhm LIZHM ~/Developments/OF_GIT ] git remote -v
origin  git@github.com:leezhm/openFrameworks.git (fetch)
origin  git@github.com: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
4

3 に答える 3

6

フェッチしているだけupstream/developですが、フェッチoriginして使用できるようにしorigin/mac8ます。

于 2012-11-22T04:43:32.047 に答える
2

git fetch
git checkout "new brach"
git pull "new branch"
git merge "new branch"

これは私のために働いています

于 2014-12-23T12:44:09.247 に答える
0

に対応するブランチはおそらくありませんorigin/xxx

于 2012-11-22T02:48:04.060 に答える