Removing code from GitHub

前端 未结 4 1261
抹茶落季
抹茶落季 2020-12-25 11:23

Is there a way to entirely remove a directory and its history from GitHub?

4条回答
  •  抹茶落季
    2020-12-25 11:45

    This is the easiest way the deletes a directory from your GitHub repo but not local system:

    git rm -r --cached FolderName
    git commit -m "Removed folder from repository"
    git push origin master
    

提交回复
热议问题