Project scenario:
MyEclipse正常切换Git分支没问题,但是修改文件后,再切换分支会弹出提示框
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.
Probably means: checkout conflicts, files have uncommitted changes that will be lost when checking out "master".
solution:
We can see that 4 options are given:
Commit
Stash (stash changes)
Reset (reset current branch to discard changes)
Cancel
Commit (submitting changes) is recommended here, or you can commit first, but not push