Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the Heroku Git Repo Public?

Tags:

git

heroku

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?

like image 900
Hamman Samuel Avatar asked Feb 21 '16 06:02

Hamman Samuel


3 Answers

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.

like image 109
John Beynon Avatar answered Oct 20 '22 18:10

John Beynon


No, the code is not public. Do not confuse GIT with GITHUB.

When you deploy to heroku the repository is private to the owner and the added collaborators.

like image 25
FedericoCapaldo Avatar answered Oct 20 '22 16:10

FedericoCapaldo


You Don't have to worry about that because in the Heroku platform the git we use for deployment was private. You could do pull/clone/push to your git to the Heroku because you might provide the SSH key of your computer to your Heroku account. So, if anyone tries to clone/pull/push to your Heroku git, he will fail to do that. Note: if your SSH key is licked with others, he can access your git and do anything with your Heroku git.

like image 20
Muhammad Nur Avatar answered Oct 20 '22 17:10

Muhammad Nur