Deploying a branch that’s not called `master` to Heroku (or pushing to a different branch name on remote in general)? Remembering to prefix the remote’s branch name with the local one might save you some confusion.

$ git push heroku my_branch:master

Where `heroku` is the remote, `my_branch` is the local branch name, and `master` is the remote branch name. Hopefully, I’ll get it right on the first try too, one day.

Follow

@jkreeftmeijer I tend to do: `git push heroku HEAD:master`, which deployed the current branch I'm on.

· · Web · 0 · 1 · 0
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!