Thursday, February 26, 2009

Chapter 24: Git and GitHub Course: Day 5 (day late)

  1. Summary of Day 5 Work Flow (pg.74-86):
  2. $ git log -2 (p.74)
    commit 01e92fc455898f45fb4eff9114f10922e2fca377
    Author: Al Snow
    Date: Tue Feb 24 19:54:44 2009 -0500
    modified display.rb
    commit 8306c2e07c44062315e907da4984147065012a5d
    Merge: 89c38f3... 18e0332...
    Author: Al Snow
    Date: Tue Feb 24 19:45:19 2009 -0500
    Merge branch 'master' of git@github.com:jasnow/gittest
  3. $ git tag display_commit 8306c2e07c44062315e907da4984147065012a5d (p.74) (no response)
  4. $ git tag (p.75)
    display_commit
  5. $ git push origin display_commit (p.75)
    Total 0 (delta 0), reused 0 (delta 0)
    To git@github.com:jasnow/gittest.git
    * [new tag] display_commit -> display_commit
  6. $ git push origin --tags (p.75)
    Everything up-to-date
  7. $ git push origin :display_commit (Deleting tag. - p.76)
    To git@github.com:jasnow/gittest.git
    - [deleted] display_commit
  8. Created a new repository, my_string_extend. (p.79-80)
  9. Clicked on "RubyGem" on GitHub for step 8's REPO.
  10. $ mkdir my_string_extend (p.80)
    $ cd my_string_extend
    $ mkdir lib
  11. $ mkdir test (p.81)
    $ mkdir doc
  12. Created gemspec based on one on page 82-83.
  13. $ git init (p.84)
    Initialized empty Git repository in c:/Users/jasnow/gitlocalrepo/my_string_exten
    d/.git/
  14. $ touch my* (p.84)
  15. $ git add . (p.84)
    warning: LF will be replaced by CRLF in lib/my_string_extend.rb
    warning: LF will be replaced by CRLF in my_string_extend.gemspec
  16. $ git commit -m 'commit of gem 0.0.4 version' (p.84)
    [master (root-commit)]: created cebbc71: "commit of gem 0.0.4 version"
    warning: LF will be replaced by CRLF in lib/my_string_extend.rb
    warning: LF will be replaced by CRLF in my_string_extend.gemspec
    2 files changed, 18 insertions(+), 0 deletions(-)
    create mode 100644 lib/my_string_extend.rb
    create mode 100644 my_string_extend.gemspec
  17. $ git remote add origin git@github.com:jasnow/my_string_extend.git (p.84)
  18. $ git push origin master (p.84)
    Counting objects: 5, done.
    Compressing objects: 100% (4/4), done.
    Writing objects: 100% (5/5), 643 bytes, done.
    Total 5 (delta 0), reused 0 (delta 0)
    To git@github.com:jasnow/my_string_extend.git
    * [new branch] master -> master
  19. Wait "up to 15 minutes" - Check inbox for status (failed or success). (p.85)
  20. Found the "small red diamond" but not email in inbox. (p.85)
  21. $ gem sources -a http://gems.github.com (Added - p.86)
    http://gems.github.com added to sources
    $ gem sources --list
    *** CURRENT SOURCES ***
    http://gems.rubyforge.org/
    http://gems.github.com
  22. Later repeated some of the steps and got this email:
    github sent you a message.
    --------------------
    Subject: [my_string_extend] Gem Build Successful
    Your gem has been built, it will be added to gems.github.com soon.
  23. FINALLY: $ gem install jasnow-my_string_extend (p.86)
    Successfully installed jasnow-my_string_extend-0.0.3
    1 gem installed
  24. $ ruby program86.rb
    16

No comments:

Post a Comment