Search code examples
githeroku

Is the Heroku Git Repo Public?


When deploying an app, Heroku's documentation mentions a git push. Does this mean that Heroku pushes my code to a public Git repo? Or is it private, like OpenShift?


Solution

  • You push into a private git.heroku.com repo that yourself and your app collaborators have access to.

    That is what HTTP Git authentication says:

    The Heroku HTTP Git endpoint only accepts API-key based HTTP Basic authentication by default and SSH is also supported using keys. (A username is not required and any value passed for username is ignored and SSH keys for SSH.)

    Meaning: if there is no authentication, no git endpoint operation is possible (including cloning/pulling with anonymous access).
    That makes all heroku git repo private.