I'm working on an R package hosted on GitHub. I had created a branch, add-coqui-tts, and then deleted it on GitHub, but my RStudio IDE desktop still has the branch :
When I fall into git-messes, my coping mechanism is to save out .gitignore, nuke .git, move everything over to to a temp folder, clone the desired state of the remote and move anything needed back over. Crude but effective.