Restore a deleted folder in a Git repo

后端 未结 8 638
执笔经年
执笔经年 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:57

    As of git 2.24.0, there's an experimental new git command: git restore

    git restore --staged some/deleted/folder
    

提交回复
热议问题