Using Git for Windows - Accidentally lost a ton of work. Can I get it back?

早过忘川 提交于 2019-12-01 11:53:48

You say that you didn't commit it. Unfortunately git only saves commits and not undone work. So, as sorry as I am, there is no way to use git to get your work back.

But you could try to restore the deleted files.

You might also want to have a look at this coding horror post.

You could now (March 2013) check, with GitHub for Windows, if you can undo a "Rollback":

See "Undo Button in GitHub for Windows"

we've added Undo support for Discards, Commits, Rollbacks, and Merges:

I don't know if the rollback would save your unstaged and uncommitted changes though, so that new "Undo" button might not be a good enough solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!