|
2 | 2 |
|
3 | 3 | Presentation for the git intro tutorial. |
4 | 4 |
|
5 | | -The LaTeX code uses the minted package, so it is necessary to add the `-shell-escape` option to the pdflatex command line when compiling the document. |
| 5 | +## Building the document ## |
| 6 | + |
| 7 | +The main document (the one you should run `pdflatex` on) is `larics-git-tutorial-intro.tex`. The LaTeX code uses the [minted](https://www.ctan.org/pkg/minted) package, so it is necessary to add the `-shell-escape` option to the pdflatex command line when compiling the document. |
| 8 | + |
| 9 | +## Notes to lecturers ## |
| 10 | + |
| 11 | +The classes are interactive, i.e., students are expected to follow along on their own laptops. |
| 12 | + |
| 13 | +The material is appropriate for 2 classes of 2 hours (2x105 minutes). The first class should cover material up to the "Branches in git" slide. The second class should cover the material on working with branches. |
| 14 | + |
| 15 | +The students should arrive to class prepared, i.e., they should: |
| 16 | + |
| 17 | +- [Open a GitHub account](https://github.com/join?source=header-home) |
| 18 | +- [Check for existing ssh keys](https://help.github.com/articles/checking-for-existing-ssh-keys/) |
| 19 | +- In case they do not have a key, they should [generate a new ssh key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/) |
| 20 | +- [Add the key to their GitHub account](https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/) |
| 21 | + |
| 22 | +To check that the key was successfully added they should try logging on to git (answer yes if prompted): |
| 23 | +``` |
| 24 | + |
| 25 | +Hi <user>! You've successfully authenticated, but GitHub does not provide shell access. |
| 26 | +Connection to github.com closed. |
| 27 | +``` |
| 28 | +On Linux, the following software must be installed: |
| 29 | +``` |
| 30 | +$ sudo apt-get install git git-gui gitg |
| 31 | +``` |
| 32 | + |
| 33 | +Optionally, students who whish to work on the C++ example should also install: |
| 34 | +``` |
| 35 | +$ sudo apt-get install build-essential cmake |
| 36 | +``` |
| 37 | + |
| 38 | +The classes can also be followed on Windows, with the help of the following software: |
| 39 | + |
| 40 | + - [Git for Windows](https://git-for-windows.github.io/) |
| 41 | + - [The gitg Windows client](https://git-scm.com/download/gui/windows) (path to the executable must be added to the Windows PATH environment variable) |
| 42 | + - [mingw](http://www.mingw.org/) and [CMake](https://cmake.org/download/) or [Python](https://www.python.org/downloads/windows/) (theoretically, but the demo code currently seems to break on Windows) |
| 43 | + |
0 commit comments