In this post I will explain how to deploy to Heroku directly through GIT. In order to see what git tree your Heroku repo is using, try:
$ git ls-remote email@example.com:APP-NAME.git
To find out the Heroku git repository name, you can also try
$ heroku info --app APP-NAME
Auto Cert Mgmt:
Right now, you know the Heroku git repository name, but you don't have a remote branch to push to.
Your Heroku app starts with a blank repository, it has no branches and no code. So the first time you deploy, you’ll need to specify a remote branch to push to.
For instance, imagine you have a server for Production where you deploy the APP-NAME, so you can create the remote called "pro-heroku".
$ git remote add pro-heroku https:
/ /git.heroku.com /APP-NAME.git
And now, if you have the git branch called "production" and we need to deploy this branch to Production, then you can try: