Git Pushing a branch to heroku
I am very new to git but I need to use it for one of my projects. A few days ago I created a local branch for the project and started working on (the new branch) it locally. Now I want to be able to push this new branch of the project to heroku.
I saw that the way to do it is to
git push heroku branchname
I tried doing that but I only get
Everything up-to-date
So I assume it was alread开发者_开发问答y pushed to heroku and checked it out only to find out that nothing changed. The new features are missing still. The two local branches share the same heroku's repository.
OK so I got the answer and this is the answer from heroku
"Branches pushed to Heroku other than “master” will be ignored. If you’re working out of another branch locally, you should either merge to master before pushing, or always specify the branch name to push to, as in “git push heroku master”.
精彩评论