lab 18 Review the Cloned Repository
Goals
- Learn about branches on remote repositories.
Enter the cloned repository 01
Let’s take a look at the cloned repository.
Execute:
cd cloned_hello ls
Output:
$ cd cloned_hello $ ls hello.c Makefile README
You should see a list of all the files in the top level of the original repository.
Review the Repository History 02
Execute:
git hist --all
Output:
$ git hist --all * 4c163cc 2015-09-30 | Merged master fixed conflict. (origin/greet) [Jim Weirich] |\ | * 54f2476 2015-09-30 | Made interactive (HEAD -> master, origin/master, origin/HEAD) [Jim Weirich] * | f71c2f8 2015-09-30 | Merge branch 'master' into greet [Jim Weirich] |\ \ | |/ | * f58fe22 2015-09-30 | Added README [Jim Weirich] * | 8f167b1 2015-09-30 | Hello uses greet function [Jim Weirich] * | 70c9f13 2015-09-30 | Added greeter function [Jim Weirich] |/ * 4645982 2015-09-30 | Using argv [Jim Weirich] * fe37bcc 2015-09-30 | First commit [Jim Weirich]
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.