I have four branches like master -> origin/regacy, FeatureA -> origin/FeatureA. As you can see, I typed the wrong name.
So I want to rename a remote branch name (origin/regacy → origin/legacy or origin/master)
I try the command below:
git remote rename regacy legacy
But Git console returned an error message to me.
error : Could not rename config section 'remote.regacy' to 'remote.legacy'
How can I solve this problem?