Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Eclipse Juno 中使用 EGit 2.1.0。
我从我的主分支创建了一个功能分支。我已经对我推送的功能做出了一些承诺。但是 EGit 一直显示我的分支已经传出。如果切换到 master 并将分支中的更改合并到 master 并切换回分支,则输出将在分支上消失。这是 EGit 中的错误吗?
您似乎已将功能分支配置为跟踪主分支。通常,一个本地分支跟踪一个远程分支,但也可以跟踪另一个本地分支。
要检查这一点,请转到Git Repositories视图,打开功能分支的上下文菜单并选择Configure Branch ...。如果原点有“.”,则跟踪指定的本地分支。
在这种情况下,EGit 的行为是正确的,因为功能分支在 master 之前“领先”,直到您将这些更改合并到 master。