Skip to content

Commit

Permalink
content/commits: Add section template
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Mar 7, 2024
1 parent 5c7d1f3 commit b5a198e
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions content/commits.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Before starting the exercise session:
- Show how to verify whether we are on our fork and not on the original repository.
```

## Exercise

```{exercise} Exercise: Practice creating commmits and branches (20 min)
Make sure that you work now **on your fork** of the recipe-book repository.
Expand All @@ -25,3 +27,101 @@ We will add to this page:
- solution
- discussion
- summary


## Solution

### (1) Create a branch and add recipe to the baranch

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````


### (2) Modify the recipe again

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````

### (3) Switch to the main branch and modify a recipe there

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````

### (4) Browse the commits you just made

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````

### (5) Compare the branches

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````

### (6) Compare two arbitrary commits

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````

### (7) Try to rename the branch

`````{tabs}
````{group-tab} Github
````
````{group-tab} VSCode
````
````{group-tab} Command line
```
```
````
`````


## Discussion

0 comments on commit b5a198e

Please sign in to comment.