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

后端 未结 2 1951
半阙折子戏
半阙折子戏 2021-01-16 08:00

I am so confused and I think I\'ve lost hours of work.

I was editing a file in Git earlier, and I saved it, but did not commit. I did do a few other file changes, an

2条回答
  •  我在风中等你
    2021-01-16 08:38

    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.

提交回复
热议问题