我是 Bitbucket 的新手,所以我有很多疑问。
我在两台不同的计算机之间共享一个 Eclipse 项目。我已使用 Eclipse 插件将项目从一台计算机推送到 Bitbucket 存储库。现在,当我转到另一台计算机时,我已获取保存在 Bitbucket 上的存储库,并且它已在我的 Eclipse 本地存储库上创建了一个新的远程跟踪分支。
当我想将该分支与本地分支 merge 时,我的问题就出现了,我不知道该怎么做
有人可以帮助我吗?
ps:如果问题或情况不是很清楚,抱歉
最佳答案
您应该遵循“Pulling New Changes from Upstream Branch ”部分:
git pull
是 fetch
+ merge
。
Right-click on a project in the Package Explorer and select
Team > Pull
or right-click on a repository in the Git Repositories view and selectPull
to pull new changes from the upstream branch your local branch is tracking.
Egit tutorial 的“获取和 pull ”部分说了那么多:
When cloning remote repositories, Git creates copies of the branches as local branches and as remote branches.
AFetch
operation will update the remote branches only.
To update your local branches as well, you will have to perform a Merge operation after fetching.
关于eclipse - 如何使用 Bitbucket 将远程分支转换为 Eclipse 中的本地分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18396982/