rename local branch github

Shell
git branch -m oldname newname

Source

Also in Shell: