rename a pushed branch git code example
Example: rename a branch alredy pushed
#checkout to the branch
git checkout old_branch_name
#in the same branch run the command
git branch -m new_branch_name
#checkout to the branch
git checkout old_branch_name
#in the same branch run the command
git branch -m new_branch_name