包括git结帐后的eclipse文件 [英] including files in eclipse after git checkout
问题描述
我试图将我的操作系统文件浏览器中的文件拖放到Eclipse的Package Explorer中。我也尝试使用导入向导。两次我得到一个源在目的地层次结构错误。
所以Eclipse显然知道文件已经在项目的文件夹结构中了。每次检测到新的文件(例如,我在git checkout _____)时,如何让Eclipse自动将文件添加到Package Explorer?
ve在其他IDE中有这个功能,使用git是非常好的。
我不是使用Eclipse内置的git管理器。
恭喜(认真)
如何让Eclipse自动将文件添加到包资源管理器,每次检测到新文件
自动我不知道
选择项目并点击 F5 - 刷新是eclipse必须的 - 有时也需要一个项目>清理
I have an android project in Eclipse. I have it under git version control. I am not using the Eclipse-built-in git manager. I'm managing git commits in command line. When I switch back and forth between branches that do/do not have certain files, I don't know how to get Eclipse to recognize these files.
I tried to drag and drop the file from my OS's file explorer into Eclipse's Package Explorer. I've also tried to use the import wizard. Both times I get a "Source is in the hierarchy of the destination" error.
So Eclipse obviously knows that the file is already in the project's folder structure. How can I get Eclipse to automatically add files to the Package Explorer every time it detects a new file (i.e. when I git checkout _____)?
I only ask because I've had this feature in other IDE's and it was great when using git.
I am not using the Eclipse-built-in git manager.
Congratulations (seriously)
How can I get Eclipse to automatically add files to the Package Explorer every time it detects a new file
automatically I don't know
Select the project and hit F5 - refresh is a must in eclipse - sometimes also a Project > clean is needed
这篇关于包括git结帐后的eclipse文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!