You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: courses/foundation/git/week1/session-plan.md
+29-10Lines changed: 29 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ These are some examples of previously created materials by mentors that you can
67
67
68
68
9. Demonstration to making a commit
69
69
- what happens after each `git add` and `git commit`
70
+
- show how to `git add` all changes, or specific files
70
71
- show `git status` and `git log`
71
72
72
73
10. Explain what happens after `git push`
@@ -75,17 +76,35 @@ These are some examples of previously created materials by mentors that you can
75
76
1. Create a branch
76
77
2. Make a commit
77
78
3. push changes to remote
78
-
4. Create a pull request
79
-
5. Update local `main`
80
79
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`
82
85
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
85
89
86
-
### Exercise 1: Assignments repository
90
+
14. Useful VS Code extensions
91
+
- GitLens - Git supercharged
92
+
- GitHub Pull Requests
87
93
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:**
89
108
90
109
- Use descriptive `commit` messages
91
110
- 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
116
135
5. Add more text to the `my-assignment.txt` file
117
136
6. Add and commit the changes in the `my-assignment.txt` file
118
137
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`
120
139
9. On your computer add some more text to the `my-assignment.txt` file
121
140
10. On your computer, add and commit the changes in the `my-assignment.txt` file
122
141
11. Push the changes to GitHub
123
142
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`.
0 commit comments