8

私は Octopress が初めてで、git/github は比較的新しいものです。

Octopress リポジトリをローカルに複製 (インストール/セットアップ) しました。

git clone git://github.com/imathis/octopress.git sitename
cd sitename
bundle install
rake install

これで、ローカル ドライブに Octopress のソースとスケルトン サイトができました。

質問 1 - 更新

ドキュメントによると、次の方法で最新の Octopress の変更に更新できるはずです。

git pull octopress master     # Get the latest Octopress
bundle install                # Keep gems updated
rake update_source            # update the template's source
rake update_style             # update the template's style

しかし、これはエラーになります:

[sitename]$ git pull octopress master
fatal: 'octopress' does not appear to be a git repository
fatal: Could not read from remote repository.

なぜこれが失敗するのですか?

質問 2 - 「私の」ものはどこに住んでいますか?

ここで、作成したアセット用に独自の github リポジトリを作成する必要がありますよね? もしそうなら、そこにすべてを保存しますか、それとも私のブログに固有のもの (投稿、ページなど) だけを保存しますか? 私の推測では、github でレプロを作成し、そこに変更をプッシュする必要があると思いますが、それが正しいかどうかはわかりません。どんな提案でも大歓迎です。

4

3 に答える 3

4

octopressこれを行うには、リポジトリにリモートの名前を付ける必要があります。

[sitename]$ git pull octopress master

という名前のリモートを追加して、octopressそれをhttps://github.com/imathis/octopress.gitに向けてみてください:

git remote add octopress github.com/imathis/octopress.git
于 2013-09-09T12:09:14.860 に答える