Welcome to the RuntimeError team's coursework repository for Semester 22-23/2's Software Project Laboratory course (BMEVIIIAB02).
This repository contains all the files and resources related to our school project. We are working trying to avoid technical debt and create a high-quality solution, so we shall document our architectural decisions, conventions and basic developer docs here. This README file provides an overview of the repository and instructions for getting started.
The repository contains the following directories:
docs
: TBD if neededsrc
: This directory contains the source code for the project.tests
: This directory contains test files for the project.resources
: This directory contains resources such as images, icons, and other assets used in the project.
To get started with the project, follow these steps:
In order to access the repository, you'll need to add your SSH key to your GitHub account. To do this, follow the steps below:
- Open Git Bash or Terminal on your local machine.
- Type
ssh-keygen -t ed25519 -C "[email protected]"
and press Enter. Make sure you enter the same E-Mail that you use for GitHub. - It will prompt you to enter a file in which to save the key. Press Enter to accept the default file location (just press enter bro).
- You will then be prompted to enter a passphrase. You can either enter a passphrase or leave it blank.
- Your SSH key will be generated and saved to your default file location, typically in the
.ssh
directory. - Use the command
cat ~/.ssh/id_ed25519.pub
to display your public SSH key. - Copy the output to your clipboard.
- Log in to your GitHub account and go to
Settings > SSH and GPG keys
. ClickNew SSH key
. Paste your public SSH key into theKey
field. Give your key a descriptive title and clickAdd SSH key
. - You can now access the repository using your SSH key 😎
For a more detailed guide: Adding a new SSH key to your GitHub account.
Type cd "your-desired-directory" && git clone [email protected]:RuntimeError-BME/coursework.git
For more detailed guide, check out this tutorial: Cloning a repository.
- From the command line, navigate to the root directory of your local repository.
- Type
git checkout -b new_branch
and press Enter. Replacenew_branch
with the name of your new branch. - To make the new branch visible online, type
git push --set-upstream origin new_branch
- You are now working on the new branch. You can make changes to the code and commit them as usual.
- To switch back to the main branch, type
git checkout main
and press Enter. Replacemain
with the name of your main branch. For more detailed guide, check out this tutorial: Creating and managing branches.
Sometimes, you may need to temporarily set aside changes that you've made to your code, without committing them to your branch. This is where Git's stash command comes in handy. To stash your changes, follow these steps:
- From the command line, navigate to the root directory of your local repository.
- Type
git stash
and press Enter. - Your changes are now stashed, and you can switch to a different branch or perform other operations without your changes getting in the way.
- To retrieve your stashed changes, type
git stash apply
and press Enter. - Your changes are now reapplied to your code. You can continue working on them and commit them to your branch when you're ready.
TBD
Useful cheatsheets & documentations: