Updating default branch from master to main

If you choose to switch over the default branch, for instance from master to main, a few steps must be taken to update Stacked PRs CLI to handle this change:

1. Ensure that local remote HEAD is updated

You can do this with git remote set-head origin --auto.

You can read the git man page for more details: https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-headem

2. Modify .git/av/av.db file to replace the parent

With these two steps, av should recognize main as master, including existing branches.

Last updated