Octopress 블로그에 글 작성하는 방법을 정리해 봅니다.
1
| $ git clone git@github.com:remotty/remotty.github.io.git
|
- source 브랜치로 checkout 합니다.(디폴트 브랜치가 source 임)
1
2
| $ cd remotty.github.io
$ git checkout source
|
- 아래의 명령을 실행하여 Github Pages로 배포를 위한 준비작업을 합니다.
1
2
| $ bundle install
$ rake setup_github_pages[git@github.com:remotty/remotty.github.io.git]
|
1
2
3
| $ git clone git@github.com:remotty/Octopress-Theme-Slash.git .themes/slash
$ rake "install[slash]"
$ rake generate
|
1
| $ rake new_post[title-of-post]
|
- 글을 작성하고 저장한 후 아래의 명령을 실행하면 바로 Github 저장소로 배포됩니다.
1
| $ rake deploy 또는 rake push
|
- source 브랜치의 변경내용을 커밋하고 git push 합니다.(이 과정을 반드시 수행해야만 합니다.)
1
2
3
| $ git add .
$ git commit -m "새글 추가함"
$ git push origin source
|
2014년 1월 30일 수정 보완함. 최효성