From 8ab198f677c6e1e4810a45905e8619fa7cbbc0c0 Mon Sep 17 00:00:00 2001 From: Yasen Vasilev <52400967+jason-vasilev@users.noreply.github.com> Date: Sun, 20 Sep 2026 23:58:24 +0200 Subject: [PATCH 1/4] Removed details about the assignment template fork repo --- courses/foundation/git/week1/assignment.md | 30 +++++++++----------- courses/foundation/git/week1/session-plan.md | 12 ++++---- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/courses/foundation/git/week1/assignment.md b/courses/foundation/git/week1/assignment.md index 30749f86..4982aafb 100644 --- a/courses/foundation/git/week1/assignment.md +++ b/courses/foundation/git/week1/assignment.md @@ -4,28 +4,26 @@ Finish all exercises from the session, then do the following: ## Exercise 1 -In this exercise you will get some practice submitting your assignment by pushing it to GitHub and then creating a pull request. +In this exercise you will get some practice submitting your assignment by pushing it to GitHub and then creating a pull request (PR). You will be using this workflow every week to submit your assignment, so it's important that you get comfortable with it. You will also practice adding/committing files one by one. -You will use the Assignment repository created on the last session. Here are the instructions: - -1. In your terminal, navigate to your assignment repository on your computer -2. Go to branch `main` -3. Pull the latest changes to make sure your local `main` is up to date -4. Create a branch for your assignment, named `git-week1/your-name`, and move to that branch -5. Inside the folder `git/week1` create 3 new files: +1. Create a new repository in your GitHub called `hyf-foundation` (this will be your Assignments Repository). Clone it locally. +2. In your terminal, navigate to the freshly cloned repository on your computer +3. Go to branch `main` +4. Pull the latest changes to make sure your local `main` is up to date +5. Create a branch for your assignment, named `git-week1`, and move to that branch +6. Create a folder called `git` and inside of it another folder called `week1`. +7. Inside the `week1` folder create 3 new files: - a file named `my-favourite-food.txt`, inside the file write your favourite dish recipe (you can just find a random recipe on Google and paste it in the file ;) - a file named `my-second-favourite-food.txt`, inside the file write the recipe for your second favourite dish - a file named `countries.txt`, where you list three countries that you have visited (this doesn't need to be true, you can just write the names of three random countries) -6. Add and commit the file `my-favourite-food.txt` -7. Add and commit the file `my-second-favourite-food.txt` -8. Add and commit the file `countries.txt` -9. Push your changes into your assignment repository on GitHub -10. Go to GitHub and create a pull request (PR) from the branch `git-week1/your-name` to `main` - -> [!TIP] -> In the future, you can find a reminder of how to submit your assignments in the "Readme.md" file in your assignments repo, under the heading "Completing the assignments". +8. Add and commit the file `my-favourite-food.txt` +9. Add and commit the file `my-second-favourite-food.txt` +10. Add and commit the file `countries.txt` +11. Push your changes into your assignment repository on GitHub +12. Go to GitHub and create a pull request (PR) from the branch `git-week1` to `main` +13. Add a link to your PR on the Assignment Sheet under the `GIT 1` column ## Cheat sheet / tips diff --git a/courses/foundation/git/week1/session-plan.md b/courses/foundation/git/week1/session-plan.md index 57ba724b..c5cca20d 100644 --- a/courses/foundation/git/week1/session-plan.md +++ b/courses/foundation/git/week1/session-plan.md @@ -98,9 +98,9 @@ These are some examples of previously created materials by mentors that you can > [!NOTE] > You will use this repository to hand in your assignments during the entire HackYourFuture program. -1. Create a repository fork on your GitHub and clone it locally, following the instructions from [HackYourFuture-CPH/hyf-assignment-template](https://github.com/HackYourFuture-CPH/hyf-assignment-template) +1. Create a repository on your GitHub called `hyf-foundation` (this will be your Assignments Repository) and clone it locally 2. Check out to a new branch called `html-and-css` -3. Add the session exercises from the previous week to the `html-css/week1` folder +3. Add the session exercises from the previous week to a folder called `week1` inside another folder called `html-css` 4. Create a PR (Pull Request) [to your own repository](https://github.com/HackYourFuture-CPH/hyf-assignment-template?tab=readme-ov-file#2-submission-process), from your `html-and-css` branch to merge changes into the `main` branch 5. Finally, have the person on your right review this PR before you agree to merge it to `main`. @@ -113,7 +113,7 @@ These are some examples of previously created materials by mentors that you can ### Exercise 2 -1. When you are on `main` branch, of the assignment repository create a branch named `git-week1/exercise-1/` and move to it +1. When you are on `main` branch, of the assignment repository create a branch named `git-week1/exercise-1` and move to it 2. Create a folder named `session-playground` in the `git` folder, under `/week1` 3. Create the following files inside the `session-playground` folder: `apples-file.txt`, `bananas-file.txt`, `oranges-file.txt` 4. Add some text to each of the files @@ -128,7 +128,7 @@ These are some examples of previously created materials by mentors that you can **Objective:** The goal of this exercise is to practice the assignment workflow. -1. When you are on `main` branch, create a branch named `git-week1/exercise-3/` and move to it +1. When you are on `main` branch, create a branch named `git-week1/exercise-3` and move to it 2. Create a file named `my-assignment.txt` in the `git` folder, under `/week1/session-playground` 3. Add some text to the `my-assignment.txt` file 4. Add and commit the changes in the `my-assignment.txt` file @@ -147,7 +147,7 @@ These are some examples of previously created materials by mentors that you can **Objective:** Face your first Git error and try to find a solution online on your own. -1. On your assignment repository go to the branch `main`, create a branch `git-week1/exercise-4/` and move to it +1. On your assignment repository go to the branch `main`, create a branch `git-week1/exercise-4` and move to it 2. In the `git` folder, under `/week1/session-playground`, create a file named `colors.txt` 3. Add two colors to the file `colors.txt`, one per line 4. Add and commit the changes in the `colors.txt` file @@ -161,7 +161,7 @@ These are some examples of previously created materials by mentors that you can **Objective:** Learn to handle a common mistake of forgetting to checkout to the right branch, when already having a few commits pushed. 1. On your assignment repository **DON'T** go to the main branch, make sure to stay on the branch from the previous exercise. -2. Create a branch `git/week1/exercise-5/` and move to it +2. Create a branch `git/week1/exercise-5` and move to it 3. In the `git` folder, under `/week1/session-playground`, create a file named `movies.txt` 4. Add two movie names to the file `movies.txt`, one per line 5. Add and commit the changes in the `movies.txt` file From 65609d4e62bdc0b3a4b06a2cce3e5ef65855ccb5 Mon Sep 17 00:00:00 2001 From: Saloumeh Sarabi <77116575+saloumeh-67@users.noreply.github.com> Date: Mon, 21 Sep 2026 08:51:36 +0200 Subject: [PATCH 2/4] Apply suggestion from @diwanow Co-authored-by: Dimitar Dimitrov --- courses/foundation/git/week1/session-plan.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courses/foundation/git/week1/session-plan.md b/courses/foundation/git/week1/session-plan.md index c5cca20d..94ca0f96 100644 --- a/courses/foundation/git/week1/session-plan.md +++ b/courses/foundation/git/week1/session-plan.md @@ -93,7 +93,7 @@ These are some examples of previously created materials by mentors that you can ### Exercise 1 -**Objective:** The goal is to set up your assignment repository fork and create your first PR (Pull Request). +**Objective:** The goal is to set up your assignment repository and create your first Pull Request (PR). > [!NOTE] > You will use this repository to hand in your assignments during the entire HackYourFuture program. From 7cc0c449ce7caf24db36985c739e27c7a6404bd4 Mon Sep 17 00:00:00 2001 From: "Y. Vasilev" <52400967+jason-vasilev@users.noreply.github.com> Date: Mon, 21 Sep 2026 15:31:13 +0200 Subject: [PATCH 3/4] Update courses/foundation/git/week1/session-plan.md Co-authored-by: Dimitar Dimitrov --- courses/foundation/git/week1/session-plan.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/courses/foundation/git/week1/session-plan.md b/courses/foundation/git/week1/session-plan.md index 94ca0f96..e62844aa 100644 --- a/courses/foundation/git/week1/session-plan.md +++ b/courses/foundation/git/week1/session-plan.md @@ -100,9 +100,11 @@ These are some examples of previously created materials by mentors that you can 1. Create a repository on your GitHub called `hyf-foundation` (this will be your Assignments Repository) and clone it locally 2. Check out to a new branch called `html-and-css` -3. Add the session exercises from the previous week to a folder called `week1` inside another folder called `html-css` -4. Create a PR (Pull Request) [to your own repository](https://github.com/HackYourFuture-CPH/hyf-assignment-template?tab=readme-ov-file#2-submission-process), from your `html-and-css` branch to merge changes into the `main` branch -5. Finally, have the person on your right review this PR before you agree to merge it to `main`. +```suggestion +3. Create a folder called `html-css`. Inside it create another folder called `week1` (the path inside becomes `html-css/week1`. +4. Add the session exercises from the previous week to `html-css/week1`. +5. Create a PR (Pull Request) [to your own repository](https://github.com/HackYourFuture-CPH/hyf-assignment-template?tab=readme-ov-file#2-submission-process), from your `html-and-css` branch to merge changes into the `main` branch +6. Finally, have the person on your right review this PR before you agree to merge it to `main`. **Tips for this exercise:** From 31576e5bc78a402cdc4d6989f35eb46628f8b814 Mon Sep 17 00:00:00 2001 From: "Y. Vasilev" <52400967+jason-vasilev@users.noreply.github.com> Date: Mon, 21 Sep 2026 15:43:58 +0200 Subject: [PATCH 4/4] Update courses/foundation/git/week1/session-plan.md Co-authored-by: Dimitar Dimitrov --- courses/foundation/git/week1/session-plan.md | 1 - 1 file changed, 1 deletion(-) diff --git a/courses/foundation/git/week1/session-plan.md b/courses/foundation/git/week1/session-plan.md index e62844aa..ee9ec1c9 100644 --- a/courses/foundation/git/week1/session-plan.md +++ b/courses/foundation/git/week1/session-plan.md @@ -100,7 +100,6 @@ These are some examples of previously created materials by mentors that you can 1. Create a repository on your GitHub called `hyf-foundation` (this will be your Assignments Repository) and clone it locally 2. Check out to a new branch called `html-and-css` -```suggestion 3. Create a folder called `html-css`. Inside it create another folder called `week1` (the path inside becomes `html-css/week1`. 4. Add the session exercises from the previous week to `html-css/week1`. 5. Create a PR (Pull Request) [to your own repository](https://github.com/HackYourFuture-CPH/hyf-assignment-template?tab=readme-ov-file#2-submission-process), from your `html-and-css` branch to merge changes into the `main` branch