Git - Review the Cloned Repository

From EdWiki

GitLab - 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.
cd cloned_hello

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

  • Review the Repository History
git hist --all

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 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.