首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为我的Octopress源代码创建Github存储库

为我的Octopress源代码创建Github存储库
EN

Stack Overflow用户
提问于 2016-02-16 13:57:36
回答 1查看 43关注 0票数 0

我有一个Octopress博客,已经以通常的方式安装了Octopress。我只想为我的博客的源目录(和一些其他文件)创建一个Github存储库。我创建了一个存储库,并在我的Octopress目录中执行了"git init“。我从源目录添加并提交了文件。

然后我执行了一个"git remote add source [https://github.com/howardm/[repository](https://github.com/howardm/[repository) name].git“

当然,我后来搞砸了一个git推送,因为我没有意识到“起源”和“主控”已经存在。

因此,我1.删除了repo 2.从我的Octopress目录中的.git/config中删除了关于“源”的行。

(我应该删除文件本身并重新开始吗?)

现在,我有:

代码语言:javascript
复制
howardm$ git remote -v

origin  git://github.com/imathis/octopress.git (fetch)
origin  git://github.com/imathis/octopress.git (push)

我应该如何创建一个新的存储库,并正确地将文件推送到它,以完成我上面描述的内容?

谢谢!

霍华德

EN

回答 1

Stack Overflow用户

发布于 2016-04-25 02:05:24

按照这些简单的步骤来创建你的博客:

代码语言:javascript
复制
# First clone the octopus or work on your local copy

# Install required packages etc
gem install bundler
bundler install

# Installl the Blog
rake install

# This is teh main part which you need to do.
# Delete the current github repository and create a new one
# Now use the octopress wizard to generate your blog and to deploy it yo github
rake setup_github_pages

# now generate the content  
rake generte

# And here comes the magic: Deploy to github
rake deploy

就是这样,现在你在github上有了一个完整的博客。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35424863

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档