Delete all files and history from remote Git repo without deleting repo itself

后端 未结 3 1625
不思量自难忘°
不思量自难忘° 2020-11-30 21:26

I would appreciate it if someone could tell me how I could delete every single file/folder on my git repository without actually deleting the repository itself. I want to de

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 21:43

    This is what I have done

    git rm -r -f -q

    git commit

    git push

    Then you have to manually delete the files, git rm remove the files from the repo but not from the file system

提交回复
热议问题