by I just saw that Heroku created the ability to git push heroku from main instead of master - and since I've been wanting to change my Git repos away from master anyway, I thought I'd check it out myself. For a little background info on the issue of master vs main in Git, see here) I followed these 3 steps: First I had to move my master branch to main using git checkout -b main: Then I had to delete the old master branch using git branch -D master: And now I can deploy from main using git push heroku main.

Easy and fast, and no more master branches in my Git repo or Heroku builds.

Related Articles