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
* Updating course from feedback.
* Update README.md
* updating image tags
* Update README.md
* replaced image to match text
* fixed link
Co-authored-by: Kevin Heis <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+67-36
Original file line number
Diff line number
Diff line change
@@ -59,17 +59,23 @@ _Welcome to "Introduction to GitHub"! :wave:_
59
59
**What is a repository?**: A [repository](https://docs.github.com/get-started/quickstart/github-glossary#repository) is a project containing files and folders. A repository tracks versions of files and folders.
60
60
<br>:tv:[Video: Exploring a repository](https://www.youtube.com/watch?v=R8OAwrcMlRw)
61
61
62
-
**What is a branch?**: A [branch](https://docs.github.com/en/get-started/quickstart/github-glossary#branch) is a parallel version of your repository. You can make edits in your branch without impacting the `main` version. Branches allow us to separate our work from the `main` branch. In other words, everyone's work is safe while you contribute.
62
+
**What is a branch?**: A [branch](https://docs.github.com/en/get-started/quickstart/github-glossary#branch) is a parallel version of your repository. By default, your repository has one branch named `main` and it is considered to be the definitive branch. You can create additional branches off of `main` in your repository. You can use branches to have different versions of a project at one time.
63
+
64
+
On additional branches, you can make edits without impacting the `main` version. Branches allow you to separate your work from the `main` branch. In other words, everyone's work is safe while you contribute.
**What is a profile README?**: A [profile README](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme) is essentially an "About me" section on your GitHub profile where you can share information about yourself with the community on GitHub.com. GitHub shows your profile README at the top of your profile page.
68
+
65
69
### :keyboard: Activity: Your first branch
66
70
67
-
1. Open a new browser tab, and work on the steps in your second tab while you read the instructions in this tab.
68
-
1. Navigate to the **Code** tab.
69
-
1. Click **Branch: main** in the drop-down.
70
-
1. In the field, enter a name for your branch: `my-first-branch`.
71
-
1. Click **Create branch: my-first-branch** or press the <kbd>Enter</kbd> key to create your branch.
72
-
1. Wait about 20 seconds then refresh this page for the next step.
71
+
1. Open a new browser tab, and navigate to this same repository. Then, work on the steps in your second tab while you read the instructions in this tab.
4. In the field, enter a name for your branch: `my-first-branch`.
76
+
5. Click **Create branch: my-first-branch** to create your branch.
77
+
6. Move on to Step 2!<br>
78
+
**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.
73
79
74
80
</details>
75
81
@@ -90,20 +96,25 @@ Creating a branch allows you to edit to your project without changing the `main`
90
96
91
97
### :keyboard: Activity: Your first commit
92
98
93
-
The following steps will guide you through the process of committing a change on GitHub.
99
+
The following steps will guide you through the process of committing a change on GitHub. Committing a change requires first adding a new file to your new branch.
94
100
95
-
1. Create a new file on this branch called `PROFILE.md`.
96
-
- Make sure you are on the "Code" tab.
97
-
- In the branch drop-down, select `my-first-branch`.
98
-
- Click **Create new file**.
99
-
- In the "file name" field, type `PROFILE.md`.
100
-
1. When you’re done naming the file, add the following content to your file:
101
-
```md
101
+
1. On the **Code** tab, make sure you're on your new branch `my-first-branch`.
102
+
2. Select the **Add file** drop-down and click **Create new file**.<br>
103
+

104
+
3. In the **Name your file...** field, enter `PROFILE.md`.
105
+
4. In the **Edit new file** area, copy the following content to your file:
106
+
```
102
107
Welcome to my GitHub profile!
103
108
```
104
-
1. After adding the text, you can commit the change by entering a brief commit message `Add PROFILE.md` in the text-entry field below the file edit view.
105
-
1. After you’ve entered a commit message, click **Commit new file**.
106
-
1. Wait about 20 seconds then refresh this page for the next step.
5. For commits, you can enter a short commit message that describes what you changes you made. This helps others know what's included in your commit. GitHub offers a simple default message, but let's change it slightly for practice. Enter `Adding PROFILE.md` in the first text-entry field below **Commit new file**. Then, if you want to confirm what your screen should look like, expand the dropdown below.
111
+
<details>
112
+
<summary> Expand to see the screenshot.</summary>
113
+
<imgalt="screenshot of adding a new file with a commit message"src="/images/commit-full-screen.png" />
114
+
</details>
115
+
6. In this lesson, we'll ignore the other fields and click **Commit new file**.
116
+
7. Move on to Step 3! <br>
117
+
**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.
107
118
108
119
</details>
109
120
@@ -127,14 +138,25 @@ Now that you’ve created a commit, it’s time to share your proposed change th
127
138
128
139
### :keyboard: Activity: Create a pull request
129
140
130
-
1. Open a pull request:
131
-
- From the "Pull requests" tab, click **New pull request**.
132
-
- In the "base:" drop-down menu, make sure the "main" branch is selected.
133
-
- In the "compare:" drop-down menu, select `my-first-branch`.
134
-
1. When you’ve selected your branch, enter a title for your pull request: `Add my first file`.
135
-
1. The next field helps you provide a description of the changes you made. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit, and opened a pull request.
136
-
1. Click **Create pull request**.
137
-
1. Wait about 20 seconds then refresh this page for the next step.
141
+
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**.
142
+
143
+

144
+
145
+
If you want, feel free to 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.
146
+
147
+
1. Click on the **Pull requests** tab in your repository.
148
+
2. Click **New pull request**.
149
+
3. In the **base:** dropdown, make sure **main** is selected.
150
+
4. Select the **compare:** dropdown, and click `my-first-branch`. <br>
151
+
<imgalt="screenshot showing both branch selections"src="/images/pull-request-branches.png"/>
152
+
5. Click **Create pull request**.
153
+
6. Enter a title for your pull request: `Add my first file`.
154
+
7. The next field helps you provide a description of the changes you made. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit! <br>
**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.<br>
159
+
<imgalt="screenshot of an example of an actions line"src="/images/Actions-to-step-4.png"/>
138
160
139
161
</details>
140
162
@@ -155,12 +177,17 @@ You successfully created a pull request. You can now merge your pull request.
155
177
**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.
156
178
<br>:tv:[Video: Understanding the GitHub flow](https://www.youtube.com/watch?v=PBI2Rz-ZOxU)
157
179
180
+
As noted in the previous step, you may have seen evidence of an action running which automatically progresses your instructions to the next step. You'll have to wait for it to finish before you can merge your pull request. It will be ready when the merge pull request button is green.
181
+
182
+

158
183
### :keyboard: Activity: Merge the pull request
159
184
160
185
1. Click **Merge pull request**.
161
186
1. Click **Confirm merge**.
162
-
1. Once your branch has been merged, you don't need it anymore and you may click **Delete branch**.
163
-
1. Wait about 20 seconds then refresh this page for the next step.
187
+
1. Once your branch has been merged, you don't need it anymore. To delete this branch, click **Delete branch**.<br>
2. Check out the **Finish** step to see what you can learn next!<br>
190
+
**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.
164
191
165
192
</details>
166
193
@@ -172,11 +199,11 @@ You successfully created a pull request. You can now merge your pull request.
172
199
<detailsid=X>
173
200
<summary><h2>Finish</h2></summary>
174
201
175
-
_Congratulations friend, you've completed this course!_
202
+
_Congratulations friend, you've completed this course and joined the world of developers!_
Here's a recap of all the tasks you've accomplished in your repository:
206
+
Here's a recap of your accomplishments:
180
207
181
208
- You learned about GitHub, repositories, branches, commits, and pull requests.
182
209
- You created a branch, a commit, and a pull request.
@@ -185,12 +212,16 @@ Here's a recap of all the tasks you've accomplished in your repository:
185
212
186
213
### What's next?
187
214
188
-
- If you'd like the contents of your `PROFILE.md` file to be on your GitHub profile:
189
-
- Make a new branch.
190
-
- Edit the contents into this `README.md` file.
191
-
- Delete `PROFILE.md` on your branch.
192
-
- Open and merge a pull request using your branch.
193
-
- We'd love to hear what you thought of this course [in our discussion board](https://github.com/skills/.github/discussions).
215
+
If you'd like to make a profile README, use the simplified instructions below or follow the instructions in the [Managing your profile README](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme) article.
216
+
1. Make a new public repository with a name that matches your GitHub username.
217
+
2. Create a file named `README.md` in it's root. The "root" means not inside any folder in your repository.
218
+
3. Edit the contents of the `README.md` file.
219
+
4. If you created a new branch for your file, open and merge a pull request on your branch.
220
+
5. We'd love to see your new profile! Share your profile on social media and tag us!
221
+
6. Lastly, we'd love to hear what you thought of this course [in our discussion board](https://github.com/skills/.github/discussions).
222
+
223
+
Check out these resources to learn more or get involved:
224
+
- Are you a student? Check out the [Student Developer Pack](https://education.github.com/pack).
194
225
-[Take another GitHub Skills course](https://github.com/skills).
195
226
-[Read the GitHub Getting Started docs](https://docs.github.com/en/get-started).
196
227
- To find projects to contribute to, check out [GitHub Explore](https://github.com/explore).
0 commit comments