You can use the following command to have master point to a new location:
git branch -f master branchToMoveMasterTo
What this is actually doing is creating a new branch called master
that points to branchToMoveMasterTo
. Since we already have a branch called master, we need the -f
flag to say we want to delete the original master