为什么我在将我的keystone应用程序从heroku复制到本地回购时获得空回购? [英] Why am I getting an empty repo when cloning my keystone app to local repo from heroku?
问题描述
我首先使用以下链接从Heroku创建了一个新的Keystone应用程序:
然后我想将它克隆到我的本地仓库中:
$ b $ Nodejs heroku git:clone -a yellowkorner $ c $
从应用程序'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:
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屋!