Using Git & GitHub

Ek bilgi bölümü 3.5

Tercüme Yüzdesi

Bu bölümde:

  • Learn how to use GitHub to follow along with the book.
  • ////

    ////

    Being Committed

    ////

    ////

    ////

    A Git commit as shown on GitHub.
    A Git commit as shown on GitHub.

    ////

    ////

    Modifying code.
    Modifying code.

    ////

    ////

    Deleting code.
    Deleting code.

    ////

    Browsing A Commit’s Code

    ////

    ////

    The Browse code button.
    The Browse code button.

    ////

    The repository at commit 3-2.
    The repository at commit 3-2.

    ////

    The repository at commit 14-2.
    The repository at commit 14-2.

    Accessing A Commit Locally

    ////

    ////

    $ git clone git@github.com:DiscoverMeteor/Microscope.git github_microscope
    

    ////

    ////

    $ cd github_microscope
    

    ////

    ////

    $ git checkout chapter3-1
    Note: checking out 'chapter3-1'.
    
    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.
    
    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:
    
      git checkout -b new_branch_name
    
    HEAD is now at a004b56... Added basic posts list template and static data.
    

    ////

    ////

    ////

    ////

    Finding a commit hash.
    Finding a commit hash.

    ////

    $ git checkout c7af59e425cd4e17c20cf99e51c8cd78f82c9932
    Previous HEAD position was a004b56... Added basic posts list template and static data.
    HEAD is now at c7af59e... Augmented the postsList route to take a limit
    

    ////

    $ git checkout master
    

    Historical Perspective

    ////

    ////

    GitHub's History button.
    GitHub’s History button.

    ////

    Displaying a file's history.
    Displaying a file’s history.

    The Blame Game

    ////

    GitHub's Blame button.
    GitHub’s Blame button.

    ////

    GitHub's Blame view.
    GitHub’s Blame view.

    ////