convert master branch to main for OSS site + enable `develop` branch protection
See original GitHub issueto comply with our branch naming conventions we should change these branch names and also enforce some simple branch protection on the develop branch
Acceptance Criteria
- change
master
tomain
A nice how to: https://stevenmortimer.com/5-steps-to-change-github-default-branch-from-master-to-main/
Branch rules:
- require pull request before merging > with 1 approver
- Dismiss stale pull requests approvals where new commits are pushed
- include administrators
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Changing the default branch - GitHub Docs
Changing the default branch · On GitHub.com, navigate to the main page of the repository. · Under your repository name, click Settings. ·...
Read more >Protected branches - GitLab Documentation
To protect a branch: On the top bar, select Main menu > Projects and find your project. ... To protect a new branch...
Read more >5 steps to change GitHub default branch from master to main
Step 1 - Move the 'master' branch to 'main' · Step 2 - Push 'main' to remote repo · Step 3 - Point...
Read more >Protecting the master branch
In your repository navigation to Settings > Branches · Under “Protected Branches” select master · Enable the following settings: Protect this branch; Require...
Read more >remote: GitLab: You are not allowed to push code to protected ...
You can turn on and off protection on selected branches in Project Settings (Go to project: "Settings" -> "Repository" -> "Expand" on "Protected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Created new Branch protection rule for
develop
with following:Change
master
tomain
Steps needed
git branch -m master main
git push -u origin main
main
branch to Amplifymain
branch instead ofmaster
in Amplifymaster
branch and change those tomain
git push origin --delete master
As we are opening a fresh ticket to look at the impact of removing
master
i’ll close this out