-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from C2SM/reorder
Make beginners and advanced course independent of each other
- Loading branch information
Showing
36 changed files
with
108 additions
and
82 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,47 +1,8 @@ | ||
# Git Course for Beginners | ||
This repository contains the exercises for the C2SM Git Workshop "Git for Beginners". | ||
Feel free to download the material to practice and enhance your Git skills. | ||
# C2SM Git Courses | ||
|
||
The corresponding [slides of this course](https://wiki.c2sm.ethz.ch/CM/WorkshopBestPractices2013) can be found | ||
at the C2SM wiki. | ||
## Git Course for Beginners | ||
The folder [beginner](beginner) contains the exercises for the C2SM Git Workshop "Git for Beginners". | ||
|
||
A Markdown version of the .ipynb files for each exercise is located in the [Markdowns folder](Markdowns). | ||
|
||
We recommend to make use of the convienient way of doing the exercises with Jupyter Notebook itself. | ||
For installation instructions see section below. | ||
|
||
## 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. | ||
|
||
Third, you need some non-standard python packages, namely: | ||
- jupyterlab | ||
- bash_kernel | ||
|
||
To install these two packages, execute the following command in your terminal: | ||
``` | ||
python -m venv git-course_env | ||
source git-course_env/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
On some machines an additional step is necessary: | ||
``` | ||
python -m bash_kernel.install | ||
``` | ||
|
||
Finally, you can start with the exercises by running: | ||
``` | ||
jupyter notebook | ||
``` | ||
This command opens the Jupyter Notebook interface in your browser. | ||
If it does not open automatically, you have to copy and paste the URL manually. | ||
In that case, please follow the instructions in your terminal. | ||
|
||
**Have fun!** | ||
## Git Course for Advanced | ||
The folder [advanced](advanced) contains the exercises for the C2SM Git Workshop "Git for Advanced" |
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
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
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
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
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
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
init_advanced_repo () { | ||
mkdir ../advanced_git | ||
cd ../advanced_git | ||
mkdir -p conference_planning | ||
cd conference_planning | ||
git init | ||
cp ../../advanced/examples/schedule_day1 . | ||
cp ../../advanced/examples/schedule_day2 . | ||
|
||
git add schedule_day1 && git commit -m "Add schedule_day1" | ||
git add schedule_day2 && git commit -m "Add schedule_day2" | ||
|
||
ed -s schedule_day1 <<< $'/program/\na\n09:00-11:00: Poster session\n.\nw\nq' > /dev/null | ||
ed -s schedule_day2 <<< $'/program/\na\n09:00-11:00: Poster session\n.\nw\nq' > /dev/null | ||
git add * && git commit -m "Add poster sessions in the morning" | ||
ed -s schedule_day1 <<< $'/session/\na\n11:00-11:15: Coffee break\n.\nw\nq' > /dev/null | ||
ed -s schedule_day2 <<< $'/session/\na\n11:00-11:15: Coffee break\n.\nw\nq' > /dev/null | ||
git add * && git commit -m "Add coffee break" | ||
git branch -m main | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Git Course for Beginners | ||
This folder contains the exercises for the C2SM Git Workshop "Git for Beginners". | ||
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. | ||
|
||
A Markdown version of the .ipynb files for each exercise is located in the [Markdowns folder](Markdowns). | ||
|
||
We recommend to make use of the convienient way of doing the exercises with Jupyter Notebook itself. | ||
For installation instructions see section below. | ||
|
||
## 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. | ||
|
||
Third, you need some non-standard python packages, namely: | ||
- jupyterlab | ||
- bash_kernel | ||
|
||
To install these two packages, execute the following command in your terminal: | ||
``` | ||
python -m venv git-course_env | ||
source git-course_env/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
On some machines an additional step is necessary: | ||
``` | ||
python -m bash_kernel.install | ||
``` | ||
|
||
Finally, you can start with the exercises by running: | ||
``` | ||
jupyter notebook | ||
``` | ||
This command opens the Jupyter Notebook interface in your browser. | ||
If it does not open automatically, you have to copy and paste the URL manually. | ||
In that case, please follow the instructions in your terminal. | ||
|
||
**Have fun!** |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*********** Schedule for Day 1 *************** | ||
Daily program | ||
|
||
|
||
|
||
********** | ||
Evening activity |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*********** Schedule for Day 2 *************** | ||
Daily program | ||
|
||
|
||
|
||
********** | ||
Evening activity |
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.