简体   繁体   中英

How to delete a specific folder in a GitHub repository?

I ma 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM