Hello GitlabΒΆ

Description

This exercise guides you through the process of setting up everything so that you can submit the assignment. What we expect you have done before you submit:

  • Find your project repository in Gitlab
../../_images/giturl.png

Detailed Instructions

1. Log into https://course-gitlab.tuni.fi/

Logging in requires TUNI authentication. TUNI hosts course-gitlab service to facilitate your studies and research.

2. Find your project

In the image on the top, we have the course upstream repo group_template_project as just an example.

If you are submitting in a group, your project will be found from an URL like https://course-gitlab.tuni.fi/compcs200-spring/groupXXXX.git where XXXX is your group number in Plussa.

When submitting alone, your project will be found from an URL like https://course-gitlab.tuni.fi/compcs200-spring/YOUR_USERNAME where YOUR_USERNAME is your TUNI username.

If not found, please contact the course personnel.

3. Submit the exercise

You can find your repository URL below the title of your project in the project page. Copy it with the blue "Code" button, select the Clone with SSH, and copy the git URL, not http URL, it will cause problems in the continuation.

The hash is found where the other arrow points, on the left side of the history button.

To demonstrate that git repo is found, submit that GitLab repository URL and hash below.

4. Save your SSH keys

Pulling and pushing requires your SSH keys to be saved in course-gitlab. Go to your home dir, e.g., by running command cd. In the home dir, you will find the hidden subdirectory: .ssh. Move there and copy-paste the content of id_rsa.pub (or equivalent), i.e., the public part of SSH keys to course-gitlab. If no .pub file exists yet, generate the key with the command ssh-keygen.

Here, one example in linux-desktop of how to do it via TigerVNC terminal window or via ssh

ssh niemelap@linux-desktop.tuni.fi
...
Welcome to linux-desktop3.tuni.fi

Last login: Thu May 19 20:38:22 2025 from 127.0.0.1
[niemelap@linux-desktop3 ~]$ cd
[niemelap@linux-desktop3 ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/niemelap/.ssh/id_rsa):
enter-enter-enter-enter ..till it does not ask any more questions
[niemelap@linux-desktop3 ~]$ cat .ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1y ...
...1y4C13FOy/HQHlX66WNCKrhW1LKJd4rmC/BT3QvBd08ikujTh9qKOcSlH niemelap@linux-desktop3
  • Copy paste starting from ssh-rsa till the very end.
  • Paste here
  • Paste the key to the textarea
  • Add key button activates. Press it. Your key is now saved, next cloning..

5. Clone the project locally

Select a good place for your repo in your computer, and then clone it:

git clone git@course-gitlab.tuni.fi:compcs200-springYEAR/groupXXXX.git
During the assignment, the group will commit their changes to the repository to grade it. The grading is done with the git url, like in this example. The normal procedure:

git pull  //to get the latest changes (not that crucial if submitting alone)
git commit -m "UI ready" -a //-m "message to describe the changes"
// -a for all changes, you can also commit only one file or a dir
git push  //only now the changes are visible in gitlab to your group members and Plussa graders

For learning git, TUNI provides a self-study course. If you want the credits for the git course, register to the course in Sisu (COMP.CS.060), too.

6. Grading the exercise

In this course, grading exercises is automated. Once you have pushed your changes to the repository and filled in your repository URL and git hash, you can click on the "Submit" button below. The grading process will start shortly after. Most of the time, the grading is done in a few seconds, but sometimes in more complex exercises it can take up quite a few minutes, so please be patient.

A+ presents the exercise submission form here.

Posting submission...