How to delete a specific folder in a GitHub repository?

Viewed 43
2 Answers

Considering you have checked out the repo in your workstation.

Steps:

  1. Go to the folder in your workstation
  2. Select & delete the folder/file (if its hidden file then make sure its visible)
  3. git commit & git push
  4. Done

You can try this step

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