Up until now, after creating a new Project from a Git repository or one of our examples, all commits to its default branch were being deployed to Production.
Today we are introducing a new default for newly created Projects, as well as an easy way to customize it from your Project Settings.
Instead of the Git repository's default branch, new Projects will now issue Production Deployments for the
If it doesn't exist, the
masterbranch will be used (more details). And if that doesn't exist either, the Git repository's default branch will be used.
Note: Existing Projects are unaffected by this change.
On the new Production Branch section under Git Integration in the Project Settings, you can now also select one of the following options:
- The Git repository's default branch.
- Any other custom branch of your choice.
As you might have noticed, we left out
masteras an option you can select from the dropdown.
This is an intentional decision, in anticipation and agreement with Git providers like GitHub moving away from terms that evoke prejudice and belong to the past.
For reasons of compatibility, creating a new Project from a Git repository that still uses
masterwill automatically populate the
Customoption. If you rename the branch in the future, you can easily change to
mainwith just two clicks.
With this change, you gain the flexibility to configure your repository's default branch for your Project's ongoing work. When you push to that branch, we will create Preview Deployments, and when you push to
mainwe will create Production Deployments.
Furthermore, if you don't want to use
main, you can now select any branch you want for your Production Deployments.