Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.53 KB

File metadata and controls

41 lines (28 loc) · 1.53 KB

How to Change Default Branch to dev

Steps to Make dev the Default Branch

  1. Go to your repository on GitHub:

  2. Click on "Settings" (top navigation bar, right side)

  3. In the left sidebar, click on "Branches"

  4. Under "Default branch" section:

    • You'll see the current default branch (likely master)
    • Click the switch/change icon next to it
    • Select dev from the dropdown
    • Click "Update"
    • Confirm the change if prompted
  5. GitHub will warn you that you're changing the default branch

    • This is safe since dev already exists and has your commits
    • Click "I understand, update the default branch"

After Changing Default Branch

  • Vercel Deployment: If Vercel is configured to deploy from the default branch, it will now deploy from dev instead of master
  • GitHub Contribution Graph: Commits to dev will now show up on your contribution graph since it's the default branch
  • Pull Requests: New pull requests will default to targeting dev instead of master

Alternative: Using GitHub CLI (if you have it installed)

If you have GitHub CLI (gh) installed, you can also do:

gh api repos/ameyakhot/llm-council -X PATCH -f default_branch=dev

Note About Vercel

Since you mentioned Vercel is attached to main, you may want to:

  1. Update Vercel project settings to deploy from dev branch instead
  2. Or keep master/main as default for production deployments and use dev for preview deployments