In order to change the name of your local git repo, do the following:

git branch -m OldBranchName NewBranchName

For remote repos, do the following:

git push origin OldBranchName

git push --set-upstream origin new_branch