Git rename branch on remote
It's impossible ... but, you can copy a branch then delete the old one.
On the remote named origin (the default name), copy the master branch in new main branch.
git push origin origin/master:refs/heads/main
To delete the old master branch (the : me...
blog.brennetot.com1 min read