Heroku Pipelines: changing the auto-deploy branch from master to main

If you are interested in updating the name of the primary branch on your repository from master to something more inclusive (I’ll use main in my examples here), but are unsure because you deploy your app via Heroku pipelines and aren’t sure how easy that will be to change…the good news is: it’s very easy!

Before doing the below, I followed the instructions here to update both git and GitHub.

Open your pipeline in the Heroku dashboard, and for each app with automatic deploys configured…


Senior Software Engineer | www.adriennedomingus.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store