VS代码删除我的Unity项目(OS X)(git clean all) [英] VS code Delete my Unity project (OS X)(git clean all)

查看:171
本文介绍了VS代码删除我的Unity项目(OS X)(git clean all)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不使用git,但是Visual Studio Code具有git图标.因此,我单击了全部清除",然后删除了我的统一项目.

I don't use git but Visual Studio Code has a git icon. So I clicked 'clean all' then my unity project has been deleted.

我如何找回我的项目?

我正在使用OS X.

推荐答案

您无法使用git或Visual Studio Code找回它. OSX可能可以帮助您还原文件(例如通过Time Machine).

You can't get it back using git or Visual Studio Code. May be OSX can help you to restore the files (for example via Time Machine).

简短说明您所做的事情:

  • 您打开了一个文件夹(不是不是 git存储库).
  • 您点击了左侧菜单栏中的git图标
  • 由于打开的目录不是git存储库,因此您只能单击初始化git存储库"选项.
  • 出现了文件列表,它们全都是unstaged(这意味着它们尚未包含在源代码管理中)
  • 您单击了Clean all上的菜单.
  • 出现一个显示文本的消息框:

  • You opened a folder (which was not a git repository).
  • You clicked on the git icon in the menu bar on the left side
  • As the opened directory wasn't a git repository there was only the option "Init git repository" that you clicked on.
  • A list of files appeared and they were all unstaged (that means they weren't already part of the source control)
  • You clicked in the menu on Clean all.
  • A message box appeared displaying the text:

Are you sure you want to clean all changes?

This action is irreversible!

There are unstaged changes in X files.

  • 您通过点击"清除更改"提交了消息框.删除了文件夹中的所有文件.

  • You submitted the message box by hitting "Clean Changes". That deleted all the files in the folder.

    这篇关于VS代码删除我的Unity项目(OS X)(git clean all)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆