Skip to content

Commit

Permalink
Merge pull request #48 from C2SM/readme_advanced
Browse files Browse the repository at this point in the history
Add README for advanced course
  • Loading branch information
jonasjucker authored Sep 21, 2022
2 parents 60f6c63 + 656c158 commit e4882d1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The folder [beginner](beginner) contains the exercises for the C2SM Git Workshop


## Git Course for Advanced
The folder [advanced](advanced) contains the exercises for the C2SM Git Workshop "Git for Advanced"
The folder [advanced](advanced) contains the exercises for the C2SM Git Workshop "Git for Advanced".
2 changes: 1 addition & 1 deletion advanced/Exercise_2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Exercise 2 - Using git bisect

In this exercise, you will use git bisect to pinpoint the exact commit in a repository where the code has broken. This tool is very useful for debugging. For this exercise, we will be using a publicly available git bisect example: https://github.com/bast/git-bisect-exercise. It consists of a git repository that contains a simple python script to calculate pi to 2 decimal places, which has broken at some point in the history of the repository. Your job is to use git bisect to find the commit where the code has broken and no longer returns the correct value of pi. You will do this in two ways: first, using git bisect manually, and then doing it automatically with git bisect run. Spoiler alert: Try to avoid the README.md file in the repository, as it contains the solution of the exercise.
In this exercise, you will use `git bisect` to pinpoint the exact commit in a repository where the code has broken. This tool is very useful for debugging. For this exercise, we will be using a publicly available `git bisect` example: https://github.com/bast/git-bisect-exercise. It consists of a git repository that contains a simple python script to calculate pi to 2 decimal places, which has broken at some point in the history of the repository. Your job is to use `git bisect` to find the commit where the code has broken and no longer returns the correct value of pi. You will do this in two ways: first, using `git bisect` manually, and then doing it automatically with `git bisect run`. Spoiler alert: Try to avoid the README.md file in the repository, as it contains the solution of the exercise.

* [Clone and test the example repository](#clone)

Expand Down
23 changes: 23 additions & 0 deletions advanced/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Git Course for Advanced
This folder contains the exercises for the C2SM Git Workshop "Git for Advanced".
Feel free to download the material to practice and enhance your Git skills.

The corresponding [slides of this course](https://wiki.c2sm.ethz.ch/CM/WorkshopBestPractices2013) can be found
at the C2SM wiki.

Each exercise is located in this folder.

## How to run the exercises
First of all, you need a Git installation on your computer.
To do so, please follow the [instructions from GitHub](https://github.com/git-guides/install-git).

> **_Important note:_** You must have at least Git 2.28 (released 27 July 2020) installed.
> You can check your Git version by typing `git --version` in your terminal.
Second, you need a Python installation as well.
We provide you here with [instructions from realpython](https://realpython.com/installing-python/),
but of course many other instruction will do it as well.

Now, use your own terminal to go through the exercises, which are all desecribed in the Markdown files.

**Have fun!**

0 comments on commit e4882d1

Please sign in to comment.