【问题标题】:Commit to master lost my commit提交给大师失去了我的承诺
【发布时间】:2017-02-08 20:53:31
【问题描述】:

我太傻了,我有点失去了对存储库的控制权,

我有 14,000 个未决更改的提交

我使用的是 mac github 桌面应用程序。我只是给提交一个标题、描述并点击提交给大师。一些加载继续,然后突然整个提交消失了。

这就是我所做的一切,我现在已经失去了一周的工作时间。

我有机会找回这个丢失的提交吗?

Git Reflog 给出

86d0999 HEAD@{0}: cherry-pick: On master: GitHub: Stashing to pull in remote changes
04f207b HEAD@{1}: merge 04f207b: Fast-forward
ce9f5bf HEAD@{2}: reset: moving to HEAD^
04f207b HEAD@{3}: commit: Table Functionality
ce9f5bf 

底部的错误线是什么?

【问题讨论】:

标签: git github github-for-mac


【解决方案1】:

如果您实际上没有进行提交,那可能会很困难。检查 reflogs。

https://git-scm.com/docs/git-reflog

【讨论】:

  • 我提交了?但是在加载过程中它消失了?
  • Git reflog 给了我一些东西,我在@Thomas 上面添加了它
猜你喜欢
  • 1970-01-01
  • 2019-07-06
  • 1970-01-01
  • 2017-12-22
  • 1970-01-01
  • 2021-09-20
  • 1970-01-01
  • 1970-01-01
  • 2021-08-08
相关资源
最近更新 更多