Skip to main content

How To Change Base Branch For Pull Requests

By default, Amplication will create pull requests from the amplication branch into your repository's base branch. This is usually main or master for many repositories.

It's possible to change the base branch that Amplication uses for pull requests. This allows you to merge changes into a different branch.

For example, you may want pull requests to merge into a development branch first before your main branch.

info

This feature requires an Enterprise plan. Review plan differences on the Git Sync Plan Differences page.

Change the base branch for all services in your project

  1. Go to your project's Git Settings page.
  2. You'll see a new Base Branch text field.
  3. Enter the name of the branch you want Amplication to merge changes into.
  4. Your new base branch is saved when you click out of the text field.

Change the base branch for a specific service in your project

  1. Visit your service's Git Settings page.
  2. Click on the Override default settings toggle.
  3. Re-select your GitHub repository.
  4. You'll see a new Base Branch text field.
  5. Enter the name of the branch you want Amplication to merge changes into.
  6. Your new base branch is saved when you click out of the text field.

Amplication will now send pull requests into the new base branch you specified.