为什么GitHub Windows客户端删除我的所有工作? [英] Why did the GitHub windows client delete all of my work?

查看:193
本文介绍了为什么GitHub Windows客户端删除我的所有工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我决定要上传所有我老旧的工作。当我刚刚开始编程时,只是想向人们展示它。我从来没有使用git(在我方面很糟糕的决定),并创建了一个存储库。我下载了Windows客户端和egit eclipse插件。我使用了egit插件,但它只是将所有东西都移动到Oder并将其作为本地存储库。然后我使用Windows客户端提交提交。花了一段时间,我离开了,睡觉了。我今天早晨醒来,除了来自eclipse的文件夹名称,.gitignore文件和.project文件之外,所有内容都被删除。有没有,我可以把这个旧的工作回来。

Yesterday, I decided I wanted to upload all of my old crappy work. It is back when I was just starting programming and just wanted to show people it. I have never used git (very bad decision in my part) and created a repository. I downloaded the windows client and the egit eclipse plugin. I used the egit plugin but it just moved everything to a Oder and made it a local repository. I then used the windows client to submit a commit. It was taking a while so I left it on and went to sleep. I woke up this morning and everything was deleted except the folder names, .gitignore files and .project files from eclipse. Is there anyway I can get this old work back.

谢谢!

推荐答案

我在这里找到了一个解决方案: https://www.quora.com/Git-revision-control/How-do-I-retrieve-added-files-but-not-committed-from -a-reset?share = 1

I have found a solution here: https://www.quora.com/Git-revision-control/How-do-I-retrieve-added-files-but-not-committed-from-a-reset?share=1

基本上你可以从blob检索文件,但是你必须一个一个地执行。我现在正在写一个程序自动执行。

Basically you can retrieve the files from blobs but you have to do this one by one. I am writing a program to do so automatically now.

还有其他更简单的方法吗?

Is there any other easier way though?

如果是这样,我会很高兴知道。

If so, I would be glad to know.

编辑:哦,我完全忘记了Windows上的以前的版本选项卡。我只是这样做。

Oh my I completely forgot about the previous versions tab on Windows. I'm just doing that.

谢谢!

这篇关于为什么GitHub Windows客户端删除我的所有工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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