UCL-COMP0233-24-25 / RSE-Classwork

6 stars 86 forks source link

Learning branches with git #2

Open dpshelio opened 1 month ago

dpshelio commented 1 month ago

In pairs, using github's visualisation tool as shown in class, do the steps needed to replicate the repository structure shown below. You can undo steps with the undo command. With clear you will start from the beginning.

:exclamation: hash numbers for the commit are going to be different and the final shape of the graph may look slightly different.

:heavy_check_mark: When done, take a screenshot of your result and create an issue in your fork that includes the screenshot of the result, a code block with your steps and a link to this issue.

[!warning] Double check you open the issue under your fork by looking in the top left corner of the new issue page, or that the website address (its URL) contain your username.

git graph to replicate

To add a code block with your steps use the following syntax:

```bash
git commit -m "First commit"
git ...
that will render as:
```bash
git commit -m "First commit"
git ...

To refer back to this issue, you need to add the following text to your issue message:

Answers UCL-COMP0233-24-25/RSE-Classwork#2

That creates a link that will appear under this issue.