Restore deleted file not staged in git

后端 未结 4 635
没有蜡笔的小新
没有蜡笔的小新 2021-01-11 15:57

I accidentally removed the entire directory of my source code...with a nice rm -r. I know, really bad; but fortunately, I had a git repo in the containing directory. Thus, g

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-11 16:16

    Something similar has happened to me. I have used the Android Studio, but it would work in other JetBrains IDE's as well.

    I have restored my deleted files via Local history > show history and then I have reverted all deleted files.

    Hope it helps someone.

提交回复
热议问题