Why am I getting an empty repo when cloning my keystone app to local repo from heroku?

蹲街弑〆低调 提交于 2019-12-12 03:34:53

问题


I first used the following link to create a new Keystone app from Heroku:

https://dashboard.heroku.com/new?button-url=https%3A%2F%2Ft.co%2FjbNu7UtZpn&template=https%3A%2F%2Fgithub.com%2FJedWatson%2Fkeystone-starter

Then I wanted to clone it to my local repo:

➜ Nodejs heroku git:clone -a yellowkorner

  Cloning from app 'yellowkorner'...
  Cloning into 'yellowkorner'...
  warning: You appear to have cloned an empty repository.
  Checking connectivity... done

But when I cd into the folder it's an empty repo, however the app is live online and working fine. Confused! Please help. Thanks


回答1:


Check the remote repo url of your local clone:

cd /path/to/local/cloned/repo
git remote -v

I suspect it references a fork of https://github.com/JedWatson/keystone-starter, meaning a repo in your GitHub account.

In that case, any fork done by heroku seems to be empty by default.
See this answer to populate its content.



来源:https://stackoverflow.com/questions/36277465/why-am-i-getting-an-empty-repo-when-cloning-my-keystone-app-to-local-repo-from-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!