Skip to content

Commit 1cbe905

Browse files
Merge pull request #225 from jesusoterogomez/foundation/git-week1/pr_fork_suggestions/1
Foundation - Git - Add information about PRs and forks to session plan
2 parents 7c72725 + 0c24226 commit 1cbe905

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

courses/foundation/git/week1/session-plan.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ These are some examples of previously created materials by mentors that you can
6767

6868
9. Demonstration to making a commit
6969
- what happens after each `git add` and `git commit`
70+
- show how to `git add` all changes, or specific files
7071
- show `git status` and `git log`
7172

7273
10. Explain what happens after `git push`
@@ -75,17 +76,35 @@ These are some examples of previously created materials by mentors that you can
7576
1. Create a branch
7677
2. Make a commit
7778
3. push changes to remote
78-
4. Create a pull request
79-
5. Update local `main`
8079

81-
12. Useful VS Code extensions
80+
12. Pull Requests
81+
1. Create a pull request
82+
2. Reviewing a pull request (commenting, approving, requesting changes)
83+
3. Merging a pull request
84+
4. Updating local `main`
8285

83-
- GitLens - Git supercharged
84-
- GitHub Pull Requests
86+
13. Forks
87+
- Your "copy" of a source repository
88+
- How forks are useful for collaboration
8589

86-
### Exercise 1: Assignments repository
90+
14. Useful VS Code extensions
91+
- GitLens - Git supercharged
92+
- GitHub Pull Requests
8793

88-
**Objective:** Create a repository on your GitHub following the instructions from [hyf-assignment-template](https://github.com/HackYourFuture-CPH/hyf-assignment-template). Then you will add the session exercises from the previous week, to the `html-css/week1` folder, by first checking out to a new branch called `html-and-css`. Create a PR to your own repo introducing those changes to `main`. Finally, have the person on your right review this PR before you agree to merge it to `main`.
94+
### Exercise 1
95+
96+
**Objective:** The goal is to set up your assignment repository fork and create your first PR (Pull Request).
97+
98+
> [!NOTE]
99+
> You will use this repository to hand in your assignments during the entire HackYourFuture program.
100+
101+
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)
102+
2. Check out to a new branch called `html-and-css`
103+
3. Add the session exercises from the previous week to the `html-css/week1` folder
104+
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
105+
5. Finally, have the person on your right review this PR before you agree to merge it to `main`.
106+
107+
**Tips for this exercise:**
89108

90109
- Use descriptive `commit` messages
91110
- Make a commit for each folder/exercise you add (makes it easier to track changes/updates)
@@ -116,13 +135,13 @@ These are some examples of previously created materials by mentors that you can
116135
5. Add more text to the `my-assignment.txt` file
117136
6. Add and commit the changes in the `my-assignment.txt` file
118137
7. Push your changes to GitHub
119-
8. On GitHub, create a pull request from the exercise branch to `main`
138+
8. On GitHub, create a pull request (on your own fork) from the exercise branch to `main`
120139
9. On your computer add some more text to the `my-assignment.txt` file
121140
10. On your computer, add and commit the changes in the `my-assignment.txt` file
122141
11. Push the changes to GitHub
123142
12. On GitHub, check what happened to the pull request you created in step 8.
124-
13. If you are on an individual assignment repository approach, merge the PR and proceed to the next step. If you are on a central assignment repository approach, DO NOT merge the PR, and skip the next step.
125-
14. Go to the `main` branch and update `main` by "downloading" the new commits from GitHub: `git pull origin main`.
143+
13. Merge the pull request.
144+
14. Locally, go to the `main` branch and update `main` by "downloading" the new commits from GitHub: `git pull origin main`.
126145

127146
### Exercise 4
128147

0 commit comments

Comments
 (0)