I have a folder in vendor/plugins/
that I deleted and committed as a delete in my github. But the folder still exists on github.
How do I remove it from github as well? This..may be a submodule.. I'm not entirely sure.
You can delete an individual file or an entire directory in your repository on GitHub. People with write permissions can delete files or directories in a repository.
Just run the rm command with the -f and -r switch to recursively remove the . git folder and all of the files and folders it contains. This Git repo remove command also allows you to delete the Git repo while allowing all of the other files and folder to remain untouched.
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r . Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.
Try this:
git rm -r vendor/plugins
git commit -m "Your comment here"
git push -u origin master
First deletes your directory
Second makes your commit
Third push your changes
You could try git rm -rf vendor/plugins
to recursively delete it. You will need to commit this again.
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