-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |