I wish this helpful for you To remove a git repo, just do rm -rf ptp/. That's it. git rm is used to move items from the index [the staging area for changes / new files], not to delete git repositories.
It is possible to completely remove a file from my SVN repository?
$ git filter-branch --tree-filter 'rm -f passwords.txt' HEAD
Rewrite 6b9b3cf04e7c5686a9cb838c3f36a8cb6a0fc2bd (21/21)
Ref 'refs/heads/master' was rewritten
Completely remove git repository
By : user7820633
Date : March 29 2020, 07:55 AM
Does that help Considering that: your most recent GitHub repo is empty, and that you have already committed your large file (meaning no amount of git rm --cached will purge that file: it removes it only from the index)