
You cannot directly rename a remote branch. You must delete it and then click it again.
Rename a branch

Important Note:
When you use git branch -m (move), Git also updates your tracking branch with a new name.
git remote rename legacy legacy
git remote rename trying to update the remote section in your configuration file. It will rename the remote with the given name to a new one, but in your case it did not find any, so the renaming failed.
But it will not do what you think; it will rename your remote local configuration name, not the remote branch.
Note. Git servers can allow you to rename Git branches using the web interface or external programs (such as Sourcetree, etc.), but you must remember that in Git all work is done locally, so it is recommended to use the above commands. to work.
CodeWizard Jun 02 '15 at 7:44 2015-06-02 07:44
source share