包括git结帐后的eclipse文件 [英] including files in eclipse after git checkout

查看:104
本文介绍了包括git结帐后的eclipse文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中有一个android项目。我有它在git版本控制下。我没有使用Eclipse内置的git管理器。我在命令行管理git提交。当我在没有某些文件的分支之间来回切换时,我不知道如何让Eclipse识别这些文件。



我试图将我的操作系统文件浏览器中的文件拖放到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屋!

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