- $ mkdir jasnow.github.com (p.88)
$ cd jasnow.github.com
$ git init
Initialized empty Git repository in c:/Users/jasnow/gitlocalrepo/jasnow.github.com/.git/
$ touch README
$ git add README
$ git commit -m 'first commit README'
[master (root-commit)]: created b4c4b7d: "first commit README"
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README - $ git remote add origin git@github.com:jasnow/jasnow.github.com.git (p.88)
- $ git push origin master (p.88)
Counting objects: 3, done.
Writing objects: 100% (3/3), 215 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:jasnow/jasnow.github.com.git
* [new branch] master -> master - $ git symbolic-ref HEAD refs/heads/gh-pages (p.89)
$ rm .git/index
$ git clean -fdx
Removing README
$ echo "My GitHub Page" > index.html
$ git add .
warning: LF will be replaced by CRLF in index.html
$ git commit -a -m "First pages commit"
[gh-pages (root-commit)]: created f6dfa2e: "First pages commit"
warning: LF will be replaced by CRLF in index.html
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 index.html
$ git push origin gh-pages
Counting objects: 3, done.
Writing objects: 100% (3/3), 232 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@github.com:jasnow/jasnow.github.com.git
* [new branch] gh-pages -> gh-pages - FYI: http://citizen428.net/archives/361-RubyLearning-Git-and-GitHub-course-review.html
Thursday, February 26, 2009
Chapter 25: Git and GitHub Course: Day 6
Summary of Day 6 Work Flow (pg.87-End)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment