I just made a boneheaded mistake. I was in a local repo, where the remote is on GitHub. (However, in this case I’ve not committed the change locally nor have I pushed it to GitHub.)
I wasn’t paying attention to the fact that I was already in a local repo. I went to GitHub to clone a repo I forked about 15 minutes previously. I got the URL and cloned it within the repo I was already in. Then, I realized the mistake I’ve made.
I’ve tried entering a
git rm -r (folder for the repo within the repo), but that failed. (Error was “fatal: pathspec did not match any files”).
How do I either undo the repo within a repo, or delete it from the repo I put it in?