How can I delete remote repo using terminal?
I have tried rm -rf .git
.
This delete file from local but does not delete repository from remote.
CodePudding user response:
You cannot delete remote repository, you must use the tools provided by your hosting platform (Gitlab, Github, BitBucket, ...).
CodePudding user response:
In order to delete files recursively on Git, you have to use the “git rm” command with the “-r” option for recursive and specify the list of files to be deleted.
$ git rm -r <folder>
$ git commit -m "Deleted the folder from the repository"
$ git push