Restore a deleted folder in a Git repo

后端 未结 8 643
执笔经年
执笔经年 2020-12-02 07:22

I have deleted all the contents inside a folder and the folder is empty. I still had a copy in my remote repo. But when I did a git pull it didn\'t put back the

8条回答
  •  不知归路
    2020-12-02 07:53

    If you are just looking to recover a deleted folder and you have other commits after the deletion, then you can also just goto your project on github.com.

    From github.com, go you to your last commit that has your folder. You should see the commit message and to the right there's a button labeled "Browse Files". Clicking this will take you to all the files from that stage of the commit.

    From there you can clone the code or just download the code as a zip.

提交回复
热议问题