I have a github repository which has a folder that i didnt mean to commit. I removed that folder from my local git repo, but when i push my local repo, all new changes are pushed, but the folder is still in my remote repository. how can i delete this folder from GITHUB?
As commenters suggested, you can delete the folder as part of a commit using git rm.
Specifically,
git checkout <branch name>
git pull
git rm -rf <folder name>
git commit -m "<commit message>"
git push origin <branch name>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With