diff --git a/README.md b/README.md index a577f98..5e418d3 100644 --- a/README.md +++ b/README.md @@ -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". diff --git a/advanced/Exercise_2.md b/advanced/Exercise_2.md index e15c296..32337cc 100644 --- a/advanced/Exercise_2.md +++ b/advanced/Exercise_2.md @@ -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) diff --git a/advanced/README.md b/advanced/README.md new file mode 100644 index 0000000..94b0479 --- /dev/null +++ b/advanced/README.md @@ -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!**