Rename remote branch without deleting it
Quick oneliner for deleting old branch and creating a new one with same content is:
git push <remote> <remote>/<old>:refs/heads/<new> :<old>
where
remote
is obvious – e.g. origin,old
andnew
are names of branches old and new respectively.