This website collects cookies to deliver better user experience
How to migrate master branch to main in Github?
How to migrate master branch to main in Github?
Few months back, Github changed the default branch from master to main. Due to this change, most of the projects were forced migrate from master to main branch. Recently I faced this problem for one of my projects.
After multiple trials and errors, I successfully migrated my project to main branch. I would like to share the steps and it would help you when you face the similar problem in the future.