i deleted a folder from my local Git repository then i committed and pushed the changes to the remote repository, the files are deleted but the folder and the sub folder are still there. How could i remove the empty folder from the remote repository?
You can force git to quit tracking a local file by calling:
git rm file.txt #warning, this also deletes the file from your filesystem
You can delete an entire directory (and it's contents) by calling:
git rm -rf directory
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