I have deleted my github repository but still want to keep versions on my local.
However, I still have remotes/origin/master
branch when I run git branch -a
.
I want to get rid of remote branches but when I try to;
git pull --prune
remote: Repository not found.
fatal: repository 'https://github.com/EfeBudak/InterestCalculator.git/' not found
How can I remove remote branches even if the remote repository does no longer exist?
You can use the git remote rm command: