Home > database >  How to delete a specific folder in a GitHub repository?
How to delete a specific folder in a GitHub repository?

Time:09-13

I m a beginner in open source and I was committed a wrong file in my GitHub repository, I just want to just delete it and here is a picture and the link..... Screenshot of the image

Here is the problem I just want to delete in and nothing more.

Link to my repository

CodePudding user response:

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

CodePudding user response:

You can try this step

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