Blog 1

Random Talk on Random Thoughts

Git Status of My Octopress Folder

| Comments |

I’d like to include my GitHub repositories here. To do so, it’s a piece of cake to slightly modify _config.yml.1

Once, I curiously typed git status in ~/octopress. The following screenshot is from my terminal.

git status

Then I blindly followed the “advice” of git status and typed

$ git add .

It seemed that I had made a mistake. Actually, without adding those modified and untracked files on the stage for commit, the following two commands will do update the contents on the GitHub pages.

$ rake generate
$ rake deploy

The final step is to view your blog again after going out for a cup water or some snacks.

How about the git status? Simply forget about it!


(Last added on MAR 15TH, 2014)

If you have more than one local repository of your Octopress or Jekyll site, you may upload your contents to the Internet as long as the corresponding branch in the local repository is newer than the one in the remote repository. To keep the Octopress or Jekyll code updated, one needs to use Git to check if the source branch contains the latest changes. Otherwise, after writing a new post, it is possible that one can’t upload the new post to the Octopress or Jekyll site using rake deploy.

Thus, eight days ago, I made Git commit 8c7be99.


  1. Mathis, B. (Jul 19, 2011). Configuring Octopress. Retrieved from http://octopress.org/docs/configuring/

Comments