Exercise - Cloning Repositories

Tips

  • git clone <original> <copy>: Clones a repository.
  • git remote -v: Shows which other clones are known, especially origin.

Setup

A Git repository named myfirstrepo has already been created. It contains two commits.

Directories

  • ./ Main directory for this exercise
    • myfirstrepo/ Existing repository.

Step 0 - START

Step 1 - Perform clone

Start in directory git-uebungen/aufgaben/<unknown>.

Create a clone of myfirstrepo named myfirstclone.

Step 2 - Examine clone

Start in directory git-uebungen/aufgaben/<unknown>.

Look at the commits and show the origin of the clone myfirstclone. origin usually stands for the repository from which it was cloned. Then show the status.

Step 3 - Work in the clone

Start in directory git-uebungen/aufgaben/<unknown>.

Create a commit and then show the status.

To the solution

To the overview