Reputation: 2233
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?
Upvotes: 0
Views: 105
Reputation: 599
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:
Upvotes: 3