我有一个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中删除了关于“源”的行。
(我应该删除文件本身并重新开始吗?)
现在,我有:
howardm$ git remote -v
origin git://github.com/imathis/octopress.git (fetch)
origin git://github.com/imathis/octopress.git (push)我应该如何创建一个新的存储库,并正确地将文件推送到它,以完成我上面描述的内容?
谢谢!
霍华德
发布于 2016-04-25 02:05:24
按照这些简单的步骤来创建你的博客:
# 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上有了一个完整的博客。
https://stackoverflow.com/questions/35424863
复制相似问题