Microcontroller-UE Help

Setting up Git

Step 1: Configuring Git

  1. Open a new terminal

  2. Run the following commands (replace the placeholders with your name and your TU Graz email):

git config --global user.name "your name" git config --global user.email "your TU Graz email"

Step 2: Setting up the SSH key

Windows

  1. Open a new terminal (make sure to use cmd.exe, not powershell)

  2. Run the following command (change the mail address) and skip all prompts by pressing enter:

ssh-keygen -t ed25519 -C "your TU Graz email" && clip < %userprofile%\.ssh\id_ed25519.pub

This will generate a new SSH key and copy it to your clipboard. You can also find the public key at `C:\Users\[Username]\.ssh\id_ed25519.pub`.

  1. Open https://gitlab.tugraz.at/-/user_settings/ssh_keys in your browser and click on "Add new key".

  2. Paste the key from your clipboard into the "Key" field and make sure that the expiration date is after the end of the semester. Then click on "Add key"

After configuring git, continue to Connecting the pico

Linux / MacOS

  1. Open a new terminal

  2. Run the following command (change the mail address) and simply press enter for all prompts:

ssh-keygen -t ed25519 -C "your TU Graz email" && cat ~/.ssh/id_ed25519.pub

Copy the output of the command to your clipboard. It should look like this:

ssh-ed25519 YOURpublicKEY...
  1. Open https://gitlab.tugraz.at/-/user_settings/ssh_keys in your browser and click on "Add new key".

  2. Paste the key from your clipboard into the "Key" field and make sure that the expiration date is after the end of the semester. Then click on "Add key".

After configuring git, continue to Connecting the pico

Last modified: 10 December 2024