lab 35 Review the Cloned Repository
Goals
- Learn about branches on remote repositories.
Look at the cloned repository
Let’s take a look at the cloned repository.
Execute:
cd cloned_hello ls
Output:
$ cd cloned_hello $ ls README lib
You should see a list of all the files in the top level of the original repository (README, and lib).
Review the Repository History
Execute:
git hist --all
Output:
$ git hist --all * d81bcbf 2023-08-21 | Hello uses Greeter (HEAD -> main, origin/main, origin/greet, origin/HEAD) [Théophile Chevalier] * c004268 2023-08-21 | Add greeter class [Théophile Chevalier] * 6179ba3 2023-08-21 | Added README [Théophile Chevalier] * 9ab61ca 2023-08-21 | Moved hello.py to lib [Théophile Chevalier] * 7abea37 2023-08-21 | Add an author/email comment [Théophile Chevalier] * 1c410c6 2023-08-21 | Add a comment (tag: v1) [Théophile Chevalier] * 0bf384c 2023-08-21 | Display user input (tag: v1-beta) [Théophile Chevalier] * 31c3945 2023-08-21 | Add some content [Théophile Chevalier] * aa5d425 2023-08-21 | First Commit [Théophile Chevalier]
You should now see a list of 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
You should see a main branch (along with HEAD) in the history list. But you will also have a number of strangely named branches (origin/main, origin/greet and origin/HEAD). We’ll talk about them in a bit.