- Course Instructors:
- Lachlan Deer (@lachlandeer)
- Adrian Etter (@eydrian)
- Julian Langer (@julianlanger)
- Max Winkler (@m-winkler)
- Course Syllabus: click here
- Course website:
- Installation Guide:
- Course Chatter:
- GitHub repositories
- Course (re-) Registration:
- Pre-course Survey:
This repository will be updated frequently. Here are the necessary instructions so that you have your own copy, and it directly plugs in to ours, so you can get updates as needed:
- Fork this repository by clicking
Fork
on the Github page- This gives you your own copy of the repository on GitHub
- Clone your copy of the repository, by entering the following commands into a terminal after navigating to a folder that you want the materials to live inside:
$ git clone https://github.com/YOURUSERNAME/2017-uzh-course-material.git
- This gives you your own copy of the repository on your computer
- Connect an
upstream
branch to the pp4rs master repository:$ git remote add upstream https://github.com/pp4rs/2017-uzh-course-material.git
- This gives you the ability to connect to the repository where new materials will be added throughout the course
Suppose Lachlan wants to clone the file repository to his own machine.
- First he forks a copy on GitHub.
- He wants to download the repository to a folder he has called
phd-courses/2nd-year/
which lives inside hishome
folder. After opening a terminal on his computer he enters the following commands (after the `$`` sign):$ cd phd-courses/2nd-year ~/phd-courses/2nd-year/$ git clone https://github.com/lachlandeer/2017-uzh-course-material.git
Note: Notice how there was no whitespace in the filepath phd-courses\2nd-year
.
We recommend you also do not have whitespace in your paths, it makes everything less error prone.
When you want try and update your repository with new course material we post, use the following commands:
- Navigate to the repository's root folder
~$ cd path/to/2017-uzh-course-material
- Note: be careful and alter the path above to match your filesystem.
Fetch
the new contents from theupstream
branch~/phd-courses/2nd-year/$ git fetch upstream
- Checkout the current branch, called
master
, of the files on your computer~/phd-courses/2nd-year/$ git checkout master
- Merge the updated materials from
upstream
into master~/phd-courses/2nd-year$ git merge upstream/master
Now you have the most upto date version of the course materials on your computer.
Suppose Lachlan has come back after lunch and wants to download the materials for the afternoon session. After turning on his computer and opening a terminal he enters the following commands
~$ cd phd-courses/2nd-year/2017-uzh-course-material
~/phd-courses/2nd-year/2017-uzh-course-material$ git fetch upstream
~/phd-courses/2nd-year/2017-uzh-course-material$ git checkout master
~/phd-courses/2nd-year/2017-uzh-course-material$ git merge upstream/master
- Note: If you get an error message, as a first step ensure that you committed all your files from your last session.
All materials are licensed under a Creative Commons CC-BY-NC-SA license. The license allows you to copy, remix and redistribute any of our publicly available materials, under the condition that you attribute the work (details in the license) and do not make profits from it. More information is available here
The suggested citation for this repository is:
Lachlan Deer, Adrian Etter, Julian Langer & Max Winkler, 2017, Course Materials, Programming Practices for Research in Economics, University of Zurich
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.