2016-02-16 47 views
0

我有一個Octopress博客,它以通常的方式安裝了Octopress。我想爲我的博客的源目錄(和一些其他文件)創建一個Github存儲庫。我創建了一個倉庫,並在我的Octopress目錄中做了一個「git init」。我從源目錄添加並提交了文件。爲我的Octopress源創建Github存儲庫

然後我做了一個「混帳遠程添加源https://github.com/howardm/[repository名稱] git的」

當然,我再搞砸了做一個混帳推,因爲我不知道「出身」和「大師」已經存在。

所以,我 1.刪除回購 2.從我的Octopress目錄中刪除.git/config有關「源」的行。

(?我應該刪除該文件本身,並開始了)

現在,我有:

howardm$ git remote -v 

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

我應該如何創建一個新的回購和正確文件推到它來完成我描述以上 ?

謝謝!

霍華德

回答

0

遵循這些簡單的步驟來創建你的博客:

# 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上一個完整的博客。

相關問題