I currently have two protected branches in my GitLab repo, but want to rename master to prod.
From my research I found some steps and wanted to make sure they were correct:
# Unprotect branch
# Switch to old local branch
git checkout master
# Create and switch to new local branch
git checkout -b main
# Delete old remote branch
git push --delete origin master
# Delete old local branch
git branch -D master
# Push new local branch to remote and set upstream branch
git push --set-upstream origin main
# Reprotect branch
