简体   繁体   English

Git丢失了所有文件,而Project Navigator丢失了Frameworks

[英]All files missing from Git, Frameworks gone from Project Navigator

I was attempting to add a remote repository to my already in progress project. 我试图将一个远程存储库添加到我已经在进行中的项目中。 In the process of doing so all my files disappeared from the Commit section of Source Control (Using Git) 在执行此操作的过程中,我的所有文件都从“源代码管理”(使用Git)的“提交”部分中消失了。

在此处输入图片说明

Also, all of the Frameworks that I downloaded from the internet (specifically my Parse Frameworks) disappeared from Finder and appeared red in the navigator. 另外,我从Internet下载的所有框架(特别是我的Parse框架)都从Finder中消失了,并在导航器中显示为红色。

在此处输入图片说明

Any ideas on how to fix this? 有想法该怎么解决这个吗? I attempted to "Discard all Changes..." which proved to do nothing, and I tried dragging in newly downloaded frameworks, which also did not work. 我试图“放弃所有更改...”,但事实证明它无济于事,然后尝试拖动新下载的框架,但该框架也不起作用。 Should I just make a new project folder? 我应该新建一个项目文件夹吗?

Looks like your frameworks folder got nuked/moved. 看起来您的frameworks文件夹已被移开/移动。

Without more info, this is my generic advice: first make a copy of the directory which encapsulates your git repo. 没有更多信息,这是我的一般建议:首先制作一个目录的副本,该目录封装了您的git repo。 Then look into the git commands git reset and the big hammer git reflog . 然后查看git命令git reset和大锤子git reflog Good luck. 祝好运。

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

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