Just do this:
git checkout master
Or, if you have changes that you want to keep, do this:
git checkout -b temp
git checkout -B master temp
Eventually, remove the temp branch (if you created one):
git branch -d temp
Just do this:
git checkout master
Or, if you have changes that you want to keep, do this:
git checkout -b temp
git checkout -B master temp
Eventually, remove the temp branch (if you created one):
git branch -d temp