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
2. In the new tab, follow the prompts to create a new repository.
43
-
44
53
- For owner, choose your personal account or an organization to host the repository.
45
54
- We recommend creating a public repository—private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
46
-
- Name the repository something easy for you to recognize and remember.
47
-
48
-

49
-
50
-
3. After your new repository is created, wait about 20 seconds, then refresh your new repository page. Follow the step-by-step instructions in the new repository's README. [GitHub Actions](https://docs.github.com/en/actions) will automatically close this welcome and open the first step.
55
+
- Press the **Create repository** button at the bottom of the form.
56
+
3. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.
51
57
52
58
</details>
53
59
54
-
<!--
55
-
<<< Author notes: Step 1 >>>
60
+
<!--
61
+
<<< Author notes: Step 1 >>>
56
62
Choose 3-5 steps for your course.
57
63
The first step is always the hardest, so pick something easy!
58
64
Link to docs.github.com for further explanations.
@@ -83,26 +89,26 @@ Branches allow you to separate your work from the `main` branch. In other words,
83
89
2. Navigate to the **< > Code** tab in the header menu of your repository.
The branch will automatically switch to the one you have just created.
101
+
102
+
The branch will automatically switch to the one you have just created.
97
103
The **main** branch drop-down bar will reflect your new branch and display the new branch name.
98
-
104
+
99
105
6. Move on to Step 2!
100
106
101
107
**Note**: If you made a public repository, and want to confirm you correctly set up your first branch, wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.
102
108
103
109
</details>
104
110
105
-
<!--
111
+
<!--
106
112
<<< Author notes: Step 2 >>>
107
113
Start this step by acknowledging the previous step.
108
114
Define terms and link to docs.github.com.
@@ -119,42 +125,42 @@ Creating a branch allows you to edit your project without changing the `main` br
119
125
120
126
### :keyboard: Activity: Your first commit
121
127
122
-
The following steps will guide you through the process of committing a change on GitHub. A commit records changes in renaming, changing content within, creating a new file, and any other changes made to your project. For this exercise, committing a change requires first adding a new file to your new branch.
128
+
The following steps will guide you through the process of committing a change on GitHub. A commit records changes in renaming, changing content within, creating a new file, and any other changes made to your project. For this exercise, committing a change requires first adding a new file to your new branch.
123
129
124
130
1. On the **< > Code** tab in the header menu of your repository, make sure you're on your new branch `my-first-branch`.
125
131
126
132
2. Select the **Add file** drop-down and click **Create new file**.
127
133
128
134

129
-
135
+
130
136
3. In the **Name your file...** field, enter `PROFILE.md`.
131
137
132
138
**Note:**`.md` is a file extension that creates a Markdown file. You can learn more about Markdown by visiting "[Basic writing and formatting syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)" in our docs or by taking the "[Communicating using Markdown](https://github.com/skills/communicate-using-markdown)" Skills course.
133
-
139
+
134
140
4. In the **Edit new file** area, copy the following content to your file:
5. For commits, you can enter a short commit message that describes what changes you made. This message helps others know what's included in your commit. GitHub offers a simple default message, but let's change it slightly for practice. First, enter `Add PROFILE.md` in the first text-entry field below **Commit new file** at the bottom of the page. Then, if you want to confirm what your screen should look like, expand the dropdown below.
143
149
144
150
<details>
145
151
<summary> Expand to see the screenshot.</summary>
146
152
<imgalt="screenshot of adding a new file with a commit message"src="/images/commit-full-screen.png" />
147
153
</details>
148
-
154
+
149
155
6. In this lesson, we'll ignore the other fields and click **Commit new file**.
150
156
7. Move on to Step 3!
151
157
152
158
**Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.
153
159
154
160
</details>
155
161
156
-
<!--
157
-
<<< Author notes: Step 3 >>>
162
+
<!--
163
+
<<< Author notes: Step 3 >>>
158
164
Just a historic note: the previous version of this step forced the learner
159
165
to write a pull request description,
160
166
checked that `main` was the receiving branch,
@@ -184,24 +190,24 @@ To create a pull request automatically, click **Compare & pull request**, and th
184
190
4. Select the **compare:** dropdown, and click `my-first-branch`.
185
191
186
192
<imgalt="screenshot showing both branch selections"src="/images/pull-request-branches.png" />
187
-
193
+
188
194
5. Click **Create pull request**.
189
195
6. Enter a title for your pull request. By default, the title will automatically be the name of your branch. For this exercise, let's edit the field to say `Add my first file`.
190
196
7. The next field helps you provide a description of the changes you made. Here, you can add a description of what you’ve accomplished so far. As a reminder, you have: created a new branch, created a file, and made a commit.
8. Click **Create pull request**. You will automatically be navigated to your new pull request.
195
201
9. Move on to Step 4!
196
202
197
203
**Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one. As a perk, you may see evidence of GitHub Actions running on the tab with the pull request opened! The image below shows a line you might see on your pull request after the Action finishes running.
198
-
204
+
199
205
<imgalt="screenshot of an example of an actions line"src="/images/Actions-to-step-4.png"/>
200
206
201
207
</details>
202
208
203
-
<!--
204
-
<<< Author notes: Step 4 >>>
209
+
<!--
210
+
<<< Author notes: Step 4 >>>
205
211
Just a historic note: The previous version of this step required responding
206
212
to a pull request review before merging. The previous version also handled
207
213
if users accidentally closed without merging.
@@ -227,15 +233,15 @@ As noted in the previous step, you may have seen evidence of GitHub Actions runn
227
233
3. Once your branch has been merged, you don't need it anymore. To delete this branch, click **Delete branch**.
4. Check out the **Finish** step to see what you can learn next!
232
238
233
239
**Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.
234
240
235
241
</details>
236
242
237
-
<!--
238
-
<<< Author notes: Finish >>>
243
+
<!--
244
+
<<< Author notes: Finish >>>
239
245
Review what we learned, ask for feedback, provide next steps.
0 commit comments