Executing
git branch -r
returns no result
So there isn't any remote tracking branch fetched from any upstream remote repo.
But that has no bearing on the number of remote repo declared for your local repo: you could have 100 remotes repos declared, as long as no git fetch is done, a git branch -r
would still return nothing.
and when executing git remote rm origin again, I get
Could not remove config section 'remote.origin'
That is the standard message for saying that the remote you are trying to (again) delete doesn't exist.
The first git remote rm origin
did work.
At this point, all what remains would be a remote named 'origin
' (with a space at the end).
Or, as Peter Lundgren and Philip Oakley mention in the comments, an empty extra entry in the .git/config
file, named "origin
", that you might need to manually delete.