简体   繁体   English

使用git进行同步的Intellij IDEA中丢失了项目树

[英]Project tree is lost in Intellij IDEA using git to synchronize

I am trying to use the integrated git in Intellij IDEA. 我正在尝试在Intellij IDEA中使用集成的git。 On the first computer, everything is fine. 在第一台计算机上,一切都很好。 Files are uploaded correctly. 文件已正确上传。

However, when I try to pull the project on another computer, although all files are properly downloaded from GitHub, Intellij IDEA could not correctly recognize the project structure. 但是,当我尝试将项目拉到另一台计算机上时,尽管从GitHub上正确下载了所有文件,但是Intellij IDEA无法正确识别项目结构。

Only files in the root directory are recognized, the src folder and files in it disappeared. 只识别根目录中的文件,src文件夹及其中的文件消失。

I have two screenshots here: Project Structure inside Intellij IDEA Actual Files on the disk 我这里有两个屏幕快照: Intellij IDEA 磁盘上的实际文件 内的项目结构

I am using Windows 10 on both computers, running the latest version of Intellij IDEA and git.exe. 我在两台计算机上都使用Windows 10,运行最新版本的Intellij IDEA和git.exe。 The project is hosted by GitHub. 该项目由GitHub托管。

If you are using Windows....the go to your project root path and type this command 如果您使用的是Windows ...,请转到您的项目根目录并键入以下命令

**git stash**

i am using Bitbucket and sourceTree on machine so sometimes i am getting the same situation and using this command i can able to get all the code. 我在机器上使用Bitbucket和sourceTree,所以有时我遇到相同的情况,使用此命令,我可以获取所有代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM