切换到EGit中的另一个分支无法正常工作 [英] Switch to another branch in EGit cannot work

查看:309
本文介绍了切换到EGit中的另一个分支无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地分支文件夹中有分支A和分支B.

I have Branch A and Branch B in the local branch folder.

分支A正在工作.现在我想切换到B.

Branch A is under working. Now I want to switch to B.

弹出窗口:

Checkout Conflicts

The files shown below have uncommitted changes which would be lost by checking out 'master'.

Either commit the changes, stash the changes, or discard the changes by resetting the current branch.

project.properties.

There are 3 options:
Commit..
Stash...
Reset

无论我选择哪个选项,它都不起作用.例如,如果我选择隐藏"选项,则会显示:

No matter which option I choose, it does not work. For example, if I choose "Stash" option, it says:

"The repository does not contain any local changes to stash".

我怀疑egit记录有一些冲突,因此它不知道下一步该怎么做.

I suspect the egit records have some conflicts, so it cannot know how to do the next step.

唯一的方法:要删除本地分支,然后将远程存储库克隆到本地?这需要花费一些时间来下载.

The only way: To remove the local branches, and clone the remote repository to the local? This needs cost some time for downloading.

推荐答案

我遇到了同样的问题.EGit投诉未提交的.class文件.我删除了.class文件,并能够毫无问题地切换到所需的分支.

I had the same problem. EGit complaint about .class files which were not commited. I deleted the .class files and was able to switch to the desired branch without problems.

这篇关于切换到EGit中的另一个分支无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆