lab 38 Review the Cloned Repository
Goals
- Learn about branches on remote repositories.
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 * 8db103d 2013-10-06 | Updated Rakefile (HEAD, origin/master, origin/greet, origin/HEAD, master) [Ismail Dhorat] * 30ae4be 2013-10-06 | Hello uses Greeter [Ismail Dhorat] * 8da6cc5 2013-10-06 | Added greeter class [Ismail Dhorat] * cad8e98 2013-10-06 | Added README [Ismail Dhorat] * 27b8b27 2013-10-06 | Added a Rakefile. [Ismail Dhorat] * 23944f0 2013-10-06 | Moved hello.rb to lib [Ismail Dhorat] * 273edac 2013-10-06 | Add an author/email comment [Ismail Dhorat] * 9efd33e 2013-10-06 | Added a comment (v1) [Ismail Dhorat] * 8b9a1c6 2013-10-06 | Added a default value (v1-beta) [Ismail Dhorat] * f6f4d6b 2013-10-06 | Using ARGV [Ismail Dhorat] * f98d857 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.