I create java app on heroku but I am a little bit confused about branches destination. I have master and HEAD branches. Which should be used for deployment? Can i delete HEAD and have only master?
HEAD
is a reference to the checked out commit and master is the usual name for your "default" branch. To deploy to heroku you have to deploy to Heroku's master branch, no matter from where:
Assuming a remote called heroku
pointing to Heroku's git:
git push heroku master
git push heroku other_ref:master
The first line pushes your master, to heroku's master. You can specify a different branch like in the second line.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.