lab 38 Review the Cloned Repository

Goals

Look at the cloned repository 01

Let’s take a look at the cloned repository.

Execute:

cd cloned_hello
ls

Output:

$ cd cloned_hello
$ ls
README
Rakefile
lib

You should see a list of all the files in the top level of the original repository (README, Rakefile and lib).

Review the Repository History 02

Execute:

git hist --all

Output:

$ git hist --all
* d15df76 2013-10-06 | Updated Rakefile (HEAD, origin/master, origin/greet, origin/HEAD, master) [Ismail Dhorat]
* 2fda7cb 2013-10-06 | Hello uses Greeter [Ismail Dhorat]
* 343d947 2013-10-06 | Added greeter class [Ismail Dhorat]
* 313c04d 2013-10-06 | Added README [Ismail Dhorat]
* b3e19a3 2013-10-06 | Added a Rakefile. [Ismail Dhorat]
* 14f09c0 2013-10-06 | Moved hello.rb to lib [Ismail Dhorat]
* 1fed2ec 2013-10-06 | Add an author/email comment [Ismail Dhorat]
* dc44f2e 2013-10-06 | Added a comment (v1) [Ismail Dhorat]
* 5ec54fd 2013-10-06 | Added a default value (v1-beta) [Ismail Dhorat]
* e606a20 2013-10-06 | Using ARGV [Ismail Dhorat]
* 5d95e74 2013-10-06 | First Commit [Ismail Dhorat]

You should now see a list of the all the commits in the new repository, and it should (more or less) match the history of commits in the original repository. The only difference should be in the names of the branches.

Remote branches 03

You should see a master branch (along with HEAD) in the history list. But you will also have number of strangely named branches (origin/master, origin/greet and origin/HEAD). We’ll talk about them in a bit.

Table of Contents