In-class exercise#
Contact data questionnaire#
Please fill out this Google form so we can connect the various places we need to give you credit for this course and let you know about it (GitHub, BASIS, eMail).
Set up groups#
Form groups of 5. You will work in these groups for the next few lectures and the first assignments.
Please try to make sure that the groups are balanced in terms of previous knowledge.
If we realize they are not, we will assign random groups instead.
Post a message in Zulip (EPP - 2024 / Groups) with the names of your group members.
Cloning the repository#
Note: Today’s in-class exercise uses individual repositories and should be completed on each individual machine. Nevertheless, we encourage you to work in your groups and help out others if they need it.
The in-class exercise is distributed via a GitHub Classroom repository. To get access to your Git repository, you can click on this link and follow the instructions.
After cloning the repository you can start with the tasks:
Git#
Change into the directory of the cloned repository.
List all the contents of the cloned repository
Note: You can use
"ls -a"
(on MacOS) or"ls -hidden"
(on Windows) to see all files, including hidden ones. You should be able to see the.git
folder.Check the current status of the repository to see if there are any changes.
Add the word “apple” to the file
a.txt
and “banana” to the fileb.txt
.Check the status of the repository.
Display the commit history (log) of the repository.
Commit only the changes in file
a.txt
. Remember to use a sensible commit message.Again, check the status of the repository.
Commit the remaining changes in file
b.txt
.Again, check the status of the repository.
Check the commit history again to view your new and previous commits.
Create a new file called
c.txt
and add the wordcoconut
to it.Check the status of the repository.
Stage the new file for a commit.
Again, check the status of the repository.
Commit your changes.
Type
git push
in your shell in order to upload the changes to GitHubGo to the GitHub page of your repository and check that the changes indeed have been uploaded and the files online look the same as the files on your computer.
Markdown#
Open an issue on the GitHub page of your repository and add some well formatted text.
Write a Zulip message to one of your classmates that contains at least one code snippet and a math formula
Edit the README file of your repository and describe what the purpose of the repository is. Commit and push the changes to GitHub.