#checkout to the branch git checkout old_branch_name #in the same branch run the command git branch -m new_branch_name