其中git的结帐后,在eclipse文件 [英] including files in eclipse after git checkout

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

问题描述

我在Eclipse中的Andr​​oid项目。我有它的Git版本控制之下。我不使用Eclipse的内置git的经理。我管理的git命令行提交。当我来回切换的做/不具有某些文件分支之间,我不知道如何让Eclipse能够识别这些文件。

我试图将它从我的操作系统的文件浏览器将文件拖放到Eclipse的Package Explorer中。我也试着使用导入向导。两次我得到一个源是在目标的层次的错误。

所以Eclipse的显然知道该文件已经在该项目的文件夹结构。我怎样才能Eclipse来自动将文件每次添加到包资源管理器检测到一个新的文件(即,当我结账的git的 _ )?

我只问,因为我已经在其他IDE的这个功能,它使用混帐时是伟大的。


解决方案

  

我不使用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天全站免登陆