eclipse - Eclipse 中的 Git : Files removed from local projects

标签 eclipse git project

我目前正在 Eclipse 中进行一些项目。想用个版本软件,选了Git,貌似不错。

我决定在网络驱动器上共享项目。在 Eclipse 中,我单击“团队”>“共享项目”并在此网络驱动器上选择一个存储库。

我的所有文件都已移至此存储库,我的本地工作区中没有任何内容。我不明白为什么所有文件都消失了。你能解释一下我删除所有文件的错误吗(这些文件在其他项目中用作依赖项,所以我的本地驱动器上确实需要它们)

另外,我可以做些什么来获取这些文件的本地副本,并在我认为这些文件已准备好提交时推送/提交。

编辑: 我在网站上找到了一些与我的问题相对应的评论:

I just tried this with EGit in Eclipse 3.7 Indigo. Sharing a project will not allow the repository to reside within the project folder. There is an option to use the parent folder of the project, but this will balk if the parent folder is the current Eclipse workspace. Perhaps, the recommendations presented here, http://wiki.eclipse.org/EGit/User_Guide#Creating_Repositories are being enforced in the tool? The final result is that the existing project in the intended Eclipse workspace, is instead, “moved” to a new or existing egit repository in HOME.

最佳答案

我遇到了同样的问题。我为它创建了一个错误报告:https://bugs.eclipse.org/bugs/show_bug.cgi?id=451521

所以我不认为你做错了什么。

关于eclipse - Eclipse 中的 Git : Files removed from local projects,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12347654/

相关文章:

eclipse - 从命令行刷新eclipse

eclipse - 如何在 Eclipse 中编译 avro 模式?

git - 如何从命令行 (Git Bash) 删除远程 Git 存储库?

git - 升级 Symfony2 标准版时解决 Composer merge 冲突

git - 修复损坏的 git 存储库。无默认修订版 'HEAD'

svn - 有来自一个 SVN 项目的 2 个产品 - 如何只为一个产品保留某些更改?

javascript - Paperscope 和 paperjs

java - 在Eclipse中运行Gradle任务时出错

java - 音频的停止和播放按钮 (Android)

intellij-idea - intellij idea 中的项目组