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
Published by Muhammad Asfour
Estimated reading time: 1 min
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