git将分支从另一个远程合并到我的分支后,git没有为我的分支提供跟踪信息

问题描述 投票:1回答:2

[我和我的同事main_repo有一个名为forked的存储库。因此,我的同事在她的叉子上创建了一个名为new_changes的分支,并从我的名为my_branch的分支中分支出来,并进行了新的更改。昨天我使用合并按钮将她对分支的拉取请求合并到我的分支中。

在她的拉取请求页面上,它在提交MERGED her_fork_repo new_changes中说my_branch1234。如果我在IntelliJ分支上的git pull,我会看到同事的新变化,但是它说:]]

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=origin/<branch> my_branch

[从我输入git remote的分支显示origin。我也尝试过git pull origin my_branch,但是git说Already up to date

并且从my_branch的拉取请求页面(合并到main_repo中,我也没有看到新的更改,我应该怎么做才能使新的更改反映在我的分支上?

有一个名为main_repo的存储库,我和我的同事对此进行了分叉。因此,我的同事在她的叉子上创建了一个名为new_changes的分支,并从我的分支my_branch分支出来,并创建了新的...

git github git-pull
2个回答
2
投票

在她的请求请求页面上,它在提交1234中说将her_fork_repo new_changes合并为my_branch


0
投票

感谢@VonC这使我意识到我合并了指向我的同事的PR,而不是我的fork回购。因此,现在在main_repo和我的fork库上,有一个同名的分支main_repo。我所做的是我

© www.soinside.com 2019 - 2024. All rights reserved.