Restore a deleted folder in a Git repo

后端 未结 8 635
执笔经年
执笔经年 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 08:11

    for uncommited deletions, Its as simple as this :

    git reset HEAD rel/path/to/deleted/directory/*

提交回复
热议问题