为什么我在将我的keystone应用程序从heroku复制到本地回购时获得空回购? [英] Why am I getting an empty repo when cloning my keystone app to local repo from heroku?

查看:177
本文介绍了为什么我在将我的keystone应用程序从heroku复制到本地回购时获得空回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我首先使用以下链接从Heroku创建了一个新的Keystone应用程序:

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

然后我想将它克隆到我的本地仓库中:
$ b $ Nodejs heroku git:clone -a yellowkorner

 
从应用程序'yellowkorner'克隆...
克隆到'yellowkorner'...
警告:您似乎克隆了一个空的存储库。
检查连接...完成

但是当我 cd 该文件夹是一个空的回购,但该应用程序是实时在线,工作正常。困惑!请帮忙。谢谢

解决方案

检查您本地克隆的远程回购网址:

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

我怀疑它引用了 https://github.com/JedWatson / keystone-starter ,这意味着您的GitHub账户中有一个回购站。



在这种情况下,由heroku完成的任何分支默认情况下都是空的。 >
请参阅此答案以填充其内容。


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

解决方案

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.

这篇关于为什么我在将我的keystone应用程序从heroku复制到本地回购时获得空回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆