I'm working a Maven project that is stored on a Google Drive folder Since I'm working on two different machines (desktop and laptop), I've also made on each of them a workspace in which I've imported the project (I know that maybe it's a bad idea to store things in cloud, but I don't know a better solution).
我正在使用存储在Google云端硬盘文件夹上的Maven项目因为我正在使用两台不同的机器(台式机和笔记本电脑),我还在每个机器上制作了一个我导入项目的工作区(我知道将内容存储在云端可能是一个坏主意,但我不知道更好的解决方案。
Now, after working on the laptop on some branches, deleting and creating some , the desktop folder has trouble in showing all the changes.
现在,在某些分支上处理笔记本电脑,删除并创建一些分支后,桌面文件夹无法显示所有更改。
When I load the project, eclipse directly puts me on the latest branch selected (which is correct) but the new packages are missing. But from the Git Window they are there in the .git folder, just not showing in the Package Explorer. I've tried to pull from the remote repo but all I get is an "up to date".
当我加载项目时,eclipse直接让我选择了最新的分支(这是正确的),但缺少新的包。但是在Git Window中,它们位于.git文件夹中,只是没有显示在Package Explorer中。我试图从遥控器回来,但我得到的只是一个“最新”。
So I've tried to delete the .metadata folder, importing the Maven project again and relinking the local git repo to the project, but no luck, it still misses those package.
所以我试图删除.metadata文件夹,再次导入Maven项目并将本地git repo重新链接到项目,但没有运气,它仍然错过了那些包。
What can I do?
我能做什么?
1 个解决方案
#1
I did it!
我做的!
When pulling the results, Eclipse created new folders for the packages on the local git repository with the new modified files, and deleted the old folders. Trouble is, that it renamed the new folders appending (1)
, so eclipse couldn't read them. I did it by opening the Team Synchronizing window and renaming the folders by removing (1)
在提取结果时,Eclipse使用新修改的文件为本地git存储库上的包创建了新文件夹,并删除了旧文件夹。麻烦的是,它重命名了附加(1)的新文件夹,因此eclipse无法读取它们。我通过打开Team Synchronizing窗口并通过删除(1)重命名文件夹来完成
#1
I did it!
我做的!
When pulling the results, Eclipse created new folders for the packages on the local git repository with the new modified files, and deleted the old folders. Trouble is, that it renamed the new folders appending (1)
, so eclipse couldn't read them. I did it by opening the Team Synchronizing window and renaming the folders by removing (1)
在提取结果时,Eclipse使用新修改的文件为本地git存储库上的包创建了新文件夹,并删除了旧文件夹。麻烦的是,它重命名了附加(1)的新文件夹,因此eclipse无法读取它们。我通过打开Team Synchronizing窗口并通过删除(1)重命名文件夹来完成