开发者

Git Pushing a branch to heroku

开发者 https://www.devze.com 2023-01-12 14:25 出处:网络
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 p

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”.

0

精彩评论

暂无评论...
验证码 换一张
取 消