0

Following Heroku's deployment tutorial, I need to push my code to the heroku remote's master. I am currently on feature_branch, and need to deploy the code on this branch.

git push heroku feature_branch master is not working

How do I push feature_branch to master on of my remote?

asked Jul 4, 2016 at 10:42
1

1 Answer 1

3

git push origin local-name:remote-name

Normally when we do a push in git we do something like git push origin master, which really means push from the local branch named master to the remote branch named master. If you want to push to a remote branch with a different name than your local branch, separate the local and remote names with a colon:

answered Jul 4, 2016 at 10:48
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.