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: README.md
+26-25
Original file line number
Diff line number
Diff line change
@@ -14,47 +14,48 @@ _Get started using GitHub in less than an hour._
14
14
</header>
15
15
16
16
<!--
17
-
<<< Author notes: Step 2 >>>
18
-
Start this step by acknowledging the previous step.
19
-
Define terms and link to docs.github.com.
17
+
<<< Author notes: Step 3 >>>
18
+
Just a historic note: the previous version of this step forced the learner
19
+
to write a pull request description,
20
+
checked that `main` was the receiving branch,
21
+
and that the file was named correctly.
20
22
-->
21
23
22
-
## Step 2: Commit a file
24
+
## Step 3: Open a pull request
23
25
24
-
_You created a branch! :tada:_
26
+
_Nice work making that commit! :sparkles:_
25
27
26
-
Creating a branch allows you to edit your project without changing the `main` branch. Now that you have a branch, it’s time to create a file and make your first commit!
28
+
Now that you have made a change to the project and created a commit, it’s time to share your proposed change through a pull request!
27
29
28
-
**What is a commit?**: A _[commit](https://docs.github.com/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)_ is a set of changes to the files and folders in your project. A commit exists in a branch. For more information, see "[About commits](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)".
30
+
**What is a pull request?**: Collaboration happens on a _[pull request](https://docs.github.com/en/get-started/quickstart/github-glossary#pull-request)_. The pull request shows the changes in your branch to other people and allows people to accept, reject, or suggest additional changes to your branch. In a side by side comparison, this pull request is going to keep the changes you just made on your branch and propose applying them to the `main` project branch. For more information about pull requests, see "[About pull requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)".
29
31
30
-
### :keyboard: Activity: Your first commit
32
+
### :keyboard: Activity: Create a pull request
31
33
32
-
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.
34
+
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**.
33
35
34
-
1. On the **< > Code** tab in the header menu of your repository, make sure you're on your new branch `my-first-branch`.
36
+

35
37
36
-
2. Select the **Add file** drop-down and click **Create new file**.
38
+
To create a pull request automatically, click **Compare & pull request**, and then skip to step 6 below. If you don't click the button, the instructions below walk you through manually setting up the pull request.
37
39
38
-

40
+
1. Click on the **Pull requests** tab in the header menu of your repository.
41
+
2. Click **New pull request**.
42
+
3. In the **base:** dropdown, make sure **main** is selected.
43
+
4. Select the **compare:** dropdown, and click `my-first-branch`.
39
44
40
-
3. In the **Name your file...** field, enter `PROFILE.md`.
45
+
<imgalt="screenshot showing both branch selections"src="/images/pull-request-branches.png" />
41
46
42
-
**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.
47
+
5. Click **Create pull request**.
48
+
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`.
49
+
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.
43
50
44
-
4. In the **Enter file contents here** area, copy the following content to your file:
8. Click **Create pull request**. You will automatically be navigated to your new pull request.
54
+
9. 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 update to the next step.
**Note**: 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.
51
57
52
-
5. Click **Commit changes...** in the upper right corner above the contents box. 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 titled "Commit message".
53
-
54
-
<imgalt="screenshot of adding a new file with a commit message"src="/images/commit-full-screen.png" />
55
-
56
-
6. In this lesson, we'll ignore the other fields and click **Commit changes**.
57
-
7. 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 update to the next step.
58
+
<imgalt="screenshot of an example of an actions line"src="/images/Actions-to-step-4.png"/>
0 commit comments