Skip to content

Migrate default branch from master to main #491

@ravi-prakash-v

Description

@ravi-prakash-v

📌 Description

The repository currently uses the master branch as its default. To align with modern, inclusive standards and GitHub’s default conventions, we need to:

  • Officially deprecate master
  • Transition to main as the new default branch
  • Update all references across the repo and community workflows

🎯 Rationale

  • Inclusivity: Industry-wide shift to using main instead of master.
  • Consistency: Aligns Beckn Protocol repos with open-source best practices.
  • Compatibility: Many CI/CD and automation tools expect main as the default.

✅ Tasks

  • Change default branch in GitHub repository settings from mastermain.

  • Ensure main is protected with the same branch protection rules as master.

  • Update references to master in:

    • Documentation files
    • CI/CD configurations
    • Contribution guidelines
    • Governance references
  • Notify community via Announcement (see linked PR/Discussion).

  • Add redirects/aliases where necessary to avoid broken links.


🔄 Community Instructions

Contributors are requested to:

  • Update local branches (git branch -m master main).
  • Rebase any open PRs onto main.
  • Update Issues, Discussions, and documentation references pointing to master.

📎 References


🔔 Impact: Medium — Requires community coordination but no breaking changes to specifications.

Metadata

Metadata

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions