To rename the current branch
git branch -m
To rename a branch while pointed to any branch To push the local branch und reset the upstream branch To delete the remote branch(old) To create a git rename alias
git branch -m
git push origin -u
git push origin —delete
git config —global alias.rename ‘branch -m’