|
1 |
| -<!-- |
2 |
| - <<< Author notes: Step 1 >>> |
3 |
| - Choose 3-5 steps for your course. |
4 |
| - The first step is always the hardest, so pick something easy! |
5 |
| - Link to docs.github.com for further explanations. |
6 |
| - Encourage users to open new tabs for steps! |
7 |
| ---> |
8 |
| - |
9 | 1 | ## Step 1: Create a branch
|
10 | 2 |
|
11 | 3 | _Welcome to "Introduction to GitHub"! :wave:_
|
12 | 4 |
|
13 |
| -**What is GitHub?**: GitHub is a collaboration platform that uses _[Git](https://docs.github.com/get-started/quickstart/github-glossary#git)_ for versioning. GitHub is a popular place to share and contribute to [open-source](https://docs.github.com/get-started/quickstart/github-glossary#open-source) software. |
14 |
| -<br>:tv: [Video: What is GitHub?](https://www.youtube.com/watch?v=pBy1zgt0XPc) |
| 5 | +**What is GitHub?**: GitHub is a collaboration platform that uses _[Git](https://docs.github.com/get-started/quickstart/github-glossary#git)_ for versioning. |
| 6 | +GitHub is a popular place to share and contribute to [open-source](https://docs.github.com/get-started/quickstart/github-glossary#open-source) software. |
| 7 | + |
| 8 | +:tv: [Video: What is GitHub?](https://www.youtube.com/watch?v=pBy1zgt0XPc) |
15 | 9 |
|
16 |
| -**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. For more information, see "[About repositories](https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories)" from GitHub Docs. |
| 10 | +**What is a repository?**: A _[repository](https://docs.github.com/get-started/quickstart/github-glossary#repository)_ is a project containing files and folders. |
| 11 | +A repository tracks versions of files and folders. For more information, see |
| 12 | +"[About repositories](https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories)" from GitHub Docs. |
17 | 13 |
|
18 |
| -**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. Creating additional branches allows you to copy the `main` branch of your repository and safely make any changes without disrupting the main project. Many people use branches to work on specific features without affecting any other parts of the project. |
| 14 | +**What is a branch?**: A _[branch](https://docs.github.com/en/get-started/quickstart/github-glossary#branch)_ is a parallel version of your repository. |
| 15 | +By default, your repository has one branch named `main` and it is considered to be the definitive branch. |
| 16 | +Creating additional branches allows you to copy the `main` branch of your repository and safely make any changes without disrupting the main project. |
| 17 | +Many people use branches to work on specific features without affecting any other parts of the project. |
19 | 18 |
|
20 |
| -Branches allow you to separate your work from the `main` branch. In other words, everyone's work is safe while you contribute. For more information, see "[About branches](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)". |
| 19 | +Branches allow you to separate your work from the `main` branch. |
| 20 | +In other words, everyone's work is safe while you contribute. |
| 21 | +For more information, see "[About branches](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)". |
21 | 22 |
|
22 |
| -**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. 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)". |
| 23 | +**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)_ |
| 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 | +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)". |
23 | 26 |
|
24 |
| - |
| 27 | + |
25 | 28 |
|
26 | 29 | ### :keyboard: Activity: Your first branch
|
27 | 30 |
|
28 |
| -1. Open a new browser tab and navigate to your newly made repository. Then, work on the steps in your second tab while you read the instructions in this tab. |
| 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 | + |
29 | 33 | 2. Navigate to the **< > Code** tab in the header menu of your repository.
|
30 | 34 |
|
31 |
| -  |
| 35 | +  |
32 | 36 |
|
33 | 37 | 3. Click on the **main** branch drop-down.
|
34 | 38 |
|
35 |
| -  |
| 39 | + <img width="300" alt="screenshot highlighting the branch selection" src="https://github.com/user-attachments/assets/1a07c958-cebf-4ca5-805e-22c1725635ba"> |
| 40 | + |
| 41 | +4. In the text box **Find or create a branch...**, enter `my-first-branch`. |
| 42 | + |
| 43 | + > **Note:** This is checked to continue with the next step. :wink: |
| 44 | +
|
| 45 | +5. Click the text **Create branch: `my-first-branch` from main** to create your branch. |
| 46 | + |
| 47 | + <img width="300" alt="screenshot highlighting the create branch prompt" src="https://github.com/user-attachments/assets/99d19ff5-4482-4210-ae45-84e7b7c47632"> |
| 48 | + |
| 49 | + - The branch will automatically switch to the one you just created. |
| 50 | + - The **main** branch drop-down menu will display your new branch name. |
| 51 | + |
| 52 | +6. Now that your branch is pushed to GitHub, Mona should already be busy checking your work. Give her a moment and keep watch in the comments. You will see her respond with progress info and the next lesson. |
36 | 53 |
|
37 |
| -4. In the field, name your branch `my-first-branch`. In this case, the name must be `my-first-branch` to trigger the course workflow. |
38 |
| -5. Click **Create branch: my-first-branch** to create your branch. |
39 | 54 |
|
40 |
| -  |
| 55 | +<details> |
| 56 | +<summary>Having trouble? 🤷</summary><br/> |
41 | 57 |
|
42 |
| - The branch will automatically switch to the one you have just created. |
43 |
| - The **main** branch drop-down bar will reflect your new branch and display the new branch name. |
| 58 | +If you don't get feedback, here are some things to check: |
| 59 | +- Make sure your created the branch with the exact name `my-first-branch`. No prefixes or suffixes. |
44 | 60 |
|
45 |
| -6. 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. |
| 61 | +</details> |
0 commit comments