2016-05-29 103 views
0

我只是用git/github弄湿我的脚。请多多包涵。在提交之前同步后删除本地文件

我花了大约2个小时处理gh-pages存储库的一组文件。我编辑了一些现有的文件,并在那段时间创建了一些新文件。

当我打开github for mac时,我看到有14个未提交的更改。愚蠢的是,我在提交之前点击了“同步”按钮,并且对本地文件的编辑消失了。

有没有办法检索它们或者是所有失去工作?

tried this没有成功。

$ git reflog 
a2bbe73 [email protected]{0}: revert: Revert "updates" 
eaa3f6a [email protected]{1}: commit: updates 
b4dba1f [email protected]{2}: commit: configuration changes 
8adeb66 [email protected]{3}: commit: config update 
c1ffcbe [email protected]{4}: commit: domain change 
e502155 [email protected]{5}: commit: initial commit 
e3ab179 [email protected]{6}: commit: configs 
fe11182 [email protected]{7}: commit: use the vitae theme 
a61266f [email protected]{8}: clone: from https://github.com/stuboo/blog.git 
+0

你能否显示'git reflog'的结果。它会显示你所做的所有git命令的历史记录。 – Flows

回答

相关问题