Skip to content

Commit

Permalink
improve the second exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Mar 6, 2024
1 parent afea87d commit 6be94cf
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions content/commits.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# Committing changes

```{exercise} Practice creating commmits and branches (20 min)
- create a branch and commit to it
- maybe also commit to main
- browse network
- compare branches
- compare commits
- rename a branch
```{instructor-note}
Before starting the exercise session:
- Show how to verify whether we are on our fork and not on the original repository.
```

```{exercise} Exercise: Practice creating commmits and branches (20 min)
Make sure that you work now **on your fork** of the recipe-book repository.
1. First create a branch and then add a recipe to the branch and commit the change.
1. In a new commit, modify the recipe you just added.
1. Switch to the `main` branch and modify a recipe there.
1. Browse the network and locate the commits that you just created ("Insights" -> "Network").
1. Compare the branch that you created with the `main` branch. Can you find an easy way to see the differences?
1. Can you find a way to compare versions between two arbitrary commits in the repository?
1. Try to rename the branch that you created and then browse the network again.
```

We will add to this page:
- intro
- screenshots
- tab on how to do this locally
- hints
- solution
- discussion
- summary

0 comments on commit 6be94cf

Please sign in to comment.