1

チームが取り組むために、会社のプロジェクトから FORK を作成しました。数週間、コードを会社のマスターに直接マージすることができないため、このフォークを作成して、今のところこれに取り組み、そこから分岐して作業します....

したがって、これを行うgit remote -vと、次のようになります。

origin  http://github.company.com/myUserID/project.git (fetch)
origin  http://github.company.com/myUserID/project.git (push)
upstream    http://github.company.com/OurOrg/project.git (fetch)
upstream    http://github.company.com/OurOrg/project.git (push)

FORKしかし、それでも、他の人が書いて、私が分岐したマスターにマージしているコードに遅れをとらないようにしたい. したがって、毎朝これを実行して、FORK を最新の状態に保ち、フォーク元のマスターにあるものと同期したいので、次のようにします。

git pull upstream master

git push origin master

そして、それは私のフォークとそのリモートレポをマスターにあるものと同期させる仕事をしていると思います。

したがって、この時点でフォークは最新の状態になっているので、FORK から作成したMY BRANCHESも更新する必要があります。

だから私はこれをしました:

git checkout my-branch-name

git pull --rebase

しかし、これは私がやりたいと思ったときに私が得るメッセージですgit pull --rebase

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=<remote>/<branch> my-branch-name

だから今、私はこの部分のために何をすべきかわからない.

4

2 に答える 2