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: .github/steps/1-create-a-branch.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,27 +24,27 @@ For more information, see "[About branches](https://docs.github.com/en/pull-requ
24
24
is essentially an "About me" section on your GitHub profile where you can share information about yourself with the community on GitHub.com.
25
25
GitHub shows your profile README at the top of your profile page. For more information, see "[Managing your profile README](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme)".
26
26
27
-

27
+

28
28
29
29
### :keyboard: Activity: Your first branch
30
30
31
31
1. Open a new browser tab and navigate to your newly made repository (your copy of this exercise). Then, work on the steps in your second tab while you read the instructions in this tab.
32
32
33
33
2. Navigate to the **< > Code** tab in the header menu of your repository.
34
34
35
-

35
+

36
36
37
37
3. Click on the **main** branch drop-down.
38
38
39
-
<imgwidth="300"alt="screenshot highlighting the branch selection"src="https://github.com/user-attachments/assets/1a07c958-cebf-4ca5-805e-22c1725635ba">
39
+
<imgwidth="300"alt="screenshot highlighting the branch selection"src="https://github.com/user-attachments/assets/9256e36d-4c17-4629-95df-863d42a3c182">
40
40
41
41
4. In the text box **Find or create a branch...**, enter `my-first-branch`.
42
42
43
43
> **Note:** This is checked to continue with the next step. :wink:
44
44
45
45
5. Click the text **Create branch: `my-first-branch` from main** to create your branch.
46
-
47
-
<imgwidth="300"alt="screenshot highlighting the create branch prompt"src="https://github.com/user-attachments/assets/99d19ff5-4482-4210-ae45-84e7b7c47632">
46
+
47
+
<imgwidth="300"alt="screenshot highlighting the create branch prompt"src="https://github.com/user-attachments/assets/df0f369f-0669-4f9e-b9f3-b82515ec2a6c">
48
48
49
49
- The branch will automatically switch to the one you just created.
50
50
- The **main** branch drop-down menu will display your new branch name.
@@ -58,4 +58,4 @@ GitHub shows your profile README at the top of your profile page. For more infor
58
58
If you don't get feedback, here are some things to check:
59
59
- Make sure your created the branch with the exact name `my-first-branch`. No prefixes or suffixes.
Copy file name to clipboardExpand all lines: .github/steps/2-commit-a-file.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The following steps will guide you through the process of committing a change on
17
17
18
18
2. Select the **Add file** drop-down and click **Create new file**.
19
19
20
-
<imgwidth="300"alt="screenshot of the create new file option"src="https://github.com/user-attachments/assets/cfb062cd-be60-4f12-948c-0946a6fe01da">
20
+
<imgwidth="300"alt="screenshot of the create new file option"src="https://github.com/user-attachments/assets/a86c088e-b377-43f7-96e6-e68f7aef1cd3">
21
21
22
22
3. In the **Name your file...** field, enter `PROFILE.md`.
23
23
@@ -27,15 +27,15 @@ The following steps will guide you through the process of committing a change on
27
27
Welcome to my GitHub profile!
28
28
```
29
29
30
-

30
+

31
31
32
32
5. Click **Commit changes...** in the upper right corner above the contents box. A dialog will appear.
33
33
34
34
6. GitHub offers a simple default message, but let's change it slightly for practice. Enter `Add PROFILE.md` in the **Commit message** field.
35
35
36
36
- A **commit message** and optional **extended description** help provide clarity for your changes. This is particularly useful when your commit involves several files.
37
37
38
-
<imgwidth="400"alt="screenshot of adding a new file with a commit message"src="https://github.com/user-attachments/assets/6ab299ce-8039-4734-a707-d7c3cd7077a0">
38
+
<imgwidth="400"alt="screenshot of adding a new file with a commit message"src="https://github.com/user-attachments/assets/5472be49-6a6c-4b9c-ba2b-151ded73921f">
39
39
40
40
6. In this lesson, we'll ignore the other fields for now and click **Commit changes**.
Copy file name to clipboardExpand all lines: .github/steps/3-open-a-pull-request.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Now that you have made a change to the project and created a commit, it’s time
10
10
11
11
You may have noticed after your commit that a message displayed indicating your recent push to your branch and providing a button that says **Compare & pull request**.
12
12
13
-

13
+

14
14
15
15
To create a pull request automatically, click **Compare & pull request** button, and then skip to step 5 below. Alternately, you practice creating it manually using the first 4 steps.
16
16
@@ -21,15 +21,15 @@ To create a pull request automatically, click **Compare & pull request** button,
21
21
-**base:**`main`
22
22
-**compare:**`my-first-branch`
23
23
24
-

24
+

25
25
26
26
4. Click **Create pull request**.
27
27
28
28
5. 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`.
29
29
30
30
6. The next field helps you provide a **description** of the changes you made. Please enter a short description of what you’ve accomplished so far. As a reminder, you have: created a new branch, created a file, and made a commit.
Copy file name to clipboardExpand all lines: .github/steps/4-merge-your-pull-request.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ You successfully created a pull request. Now it's time to merge it!
6
6
7
7
**What is a merge?**: A _[merge](https://docs.github.com/en/get-started/quickstart/github-glossary#merge)_ adds the changes in your pull request and branch into the `main` branch. For more information about merges, see "[Merging a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request)."
8
8
9
-

9
+

10
10
11
11
### :keyboard: Activity: Merge the pull request
12
12
@@ -20,7 +20,7 @@ You successfully created a pull request. Now it's time to merge it!
20
20
21
21
3. Once your branch has been merged, you don't need it anymore. To delete this branch, click **Delete branch**.
0 commit comments