Git pull: fatal: Couldn’t find remote ref refs/heads

Start by looking at .git/config file in you’re project folder for references to that branch, and removing them.

Another way is to prune all stale branches from your local repository. This will delete all local branches that already have been removed from the remote:

git remote prune origin --dry-run
// If it looks correct
git remote prune origin

git remote prune origin
Deletes all stale tracking branches under . These stale branches have already been removed from the remote repository referenced by , but are still locally available in “remotes/“. With –dry-run option, report what branches will be pruned, but do no actually prune them.