Go to the repo on github, Settings →Branches->Rename
2. Rename on local and servers
3. Don't forget to update the name in github action yml files.