eclipse - 如何使用 Bitbucket 将远程分支转换为 Eclipse 中的本地分支?

标签 eclipse git bitbucket

我是 Bitbucket 的新手,所以我有很多疑问。

我在两台不同的计算机之间共享一个 Eclipse 项目。我已使用 Eclipse 插件将项目从一台计算机推送到 Bitbucket 存储库。现在,当我转到另一台计算机时,我已获取保存在 Bitbucket 上的存储库,并且它已在我的 Eclipse 本地存储库上创建了一个新的远程跟踪分支。

当我想将该分支与本地分支 merge 时,我的问题就出现了,我不知道该怎么做

有人可以帮助我吗?

ps:如果问题或情况不是很清楚,抱歉

最佳答案

您应该遵循“Pulling New Changes from Upstream Branch ”部分:

git pullfetch + 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 select Pull 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.
A Fetch 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/

相关文章:

eclipse - 如何在eclipse中运行kafka生产者?

java - Eclipse 错误,平台游戏

java - Eclipse Egit 自动提交/推送

Eclipse 部署程序集 - 如何删除多个 jar 文件?

bash - 从通过 post-receive 钩子(Hook)创建的 ssh session 调用时,导出不起作用

java - Bitbucket 与 Java Maven 项目和 JFX 的管道

git - 如何列出数据库中的所有 git 对象?

git - 将 ODP 链接回 NSF -

git - 无法通过 ssh 连接到 BitBucket

image - 将图像添加到 BitBucket 上的 README.md