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

后端 未结 2 1915
半阙折子戏
半阙折子戏 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:35

    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:

    Undo button

    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.

提交回复
热议问题