cobyism / ghost-on-heroku

One-button Heroku deploy for the Ghost blogging platform.
MIT License
743 stars 686 forks source link

git:clone says my repo is empty #67

Closed conor909 closed 8 years ago

conor909 commented 8 years ago

My app is up and running on heroku just fine, but when I try to download it locally using heroku git:clone --app MYAPPNAME

Its creates the folder and the git init, but it's an empty folder and in the console: warning: You appear to have cloned an empty repository.

And when using a client to create a new repo locally it complains about not having a master branch: fatal: Couldn't find remote ref master

conor909 commented 8 years ago

From Heroku support:

Recent changes are such that heroku git:clone is only useful for applications that are deployed with Heroku's hosted git service. In effect this means that applications deployed via GitHub, DropBox or "Deploy to Heroku" buttons will result in an empty repo when cloned.

In that case, you'll need to download the source repository and add the heroku remote to that repo. Once you've done that you can push with git (git push heroku master) and you'll be able to clone the repo after that.

holic commented 8 years ago

Ooof... that sounds like a pretty terrible experience. I wonder if manually adding the remote and pulling it down works?

Closing this as it's unrelated to ghost-on-heroku but a general Heroku issue (also see https://github.com/cobyism/ghost-on-heroku/issues/62).