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
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ For more information on the goals of this course, check out the [`course-details
14
14
15
15
## Contribute
16
16
17
-
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/master/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
17
+
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/main/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
18
18
19
-
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/master/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
19
+
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/main/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
Copy file name to clipboardExpand all lines: responses/00.1_welcome.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
@@ -1,14 +1,14 @@
1
1
# Welcome
2
2
3
-
This repository will teach you about release workflows. By the end of this course, you'll have two versions of the classic arcade game, "Alien Invasion". Let's get started! If you'd like, you can use [GitHub Pages](https://pages.github.com/) to host your Invasion game and see live updates. Go to the **Settings** tab of this repository. Scroll down to **GitHub Pages**. Select `master` as a **Source**.
3
+
This repository will teach you about release workflows. By the end of this course, you'll have two versions of the classic arcade game, "Alien Invasion". Let's get started! If you'd like, you can use [GitHub Pages](https://pages.github.com/) to host your Invasion game and see live updates. Go to the **Settings** tab of this repository. Scroll down to **GitHub Pages**. Select `main` as a **Source**.
The [GitHub flow](https://guides.github.com/introduction/flow/) is a lightweight, branch-based workflow for projects with regular deployments.
10
10
11
-
Some projects may deploy more often, with continuous deployment. There might be a "release" every time there's a new commit on master.
11
+
Some projects may deploy more often, with continuous deployment. There might be a "release" every time there's a new commit on main.
12
12
13
13
But, some projects rely on a different structure for versions and releases.
14
14
@@ -31,7 +31,7 @@ Before using a release based workflow for a larger release, let's create a tag a
31
31
1. Go to the [**Releases** page]({{ releases }}) for this repository.
32
32
- You can click the link above, or click the **Code** tab at the top of your repository. Then, find the navigation bar below the repository description, and click **0 releases**.
33
33
1. Click **Create a new release**.
34
-
1. In the field for _Tag version_, specify a number. In this case, use **v0.9**. Keep the _Target_ as **master**.
34
+
1. In the field for _Tag version_, specify a number. In this case, use **v0.9**. Keep the _Target_ as **main**.
35
35
1. Give the release a title, like "First beta release". If you'd like, you could also give the release a short description.
36
36
1. Select the checkbox next to **This is a pre-release**, since it is representing a beta version.
Copy file name to clipboardExpand all lines: responses/03.1_update-readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
As you prepare for a future release, you'll need to organize more than the tasks and features. It's important to create a clear workflow for your team, and to make sure that the work remains organized.
4
4
5
-
There are several strategies for managing releases. Some teams might use long-lived branches, like `production`, `dev`, and `master`. Some teams use simple feature branches, releasing from the master branch.
5
+
There are several strategies for managing releases. Some teams might use long-lived branches, like `production`, `dev`, and `main`. Some teams use simple feature branches, releasing from the main branch.
6
6
7
7
No one strategy is better than another. We always recommend being intentional about branches and reducing long-lived branches whenever possible.
8
8
9
9
In this exercise, you'll use the `release-v1.0` branch to be your one long-lived branch per release version.
10
10
11
11
## Protected branches
12
12
13
-
Like the `master` branch, you can protect release branches. This means you can protect branches from force pushes or accidental deletion. This is already configured in this repository.
13
+
Like the `main` branch, you can protect release branches. This means you can protect branches from force pushes or accidental deletion. This is already configured in this repository.
Copy file name to clipboardExpand all lines: responses/05.2_release-pr.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
@@ -1,6 +1,6 @@
1
-
## Release branches and `master`
1
+
## Release branches and `main`
2
2
3
-
You should open a pull request between your release branch and master as early as possible. It might be open for a long time, and that's okay. The pull request corresponds to the work in the project board.
3
+
You should open a pull request between your release branch and main as early as possible. It might be open for a long time, and that's okay. The pull request corresponds to the work in the project board.
4
4
5
5
The pull request description should:
6
6
- Include a brief description of the pull request
@@ -11,11 +11,11 @@ To expedite the creation of this pull request, I've added a pull request templat
11
11
12
12
### Step 6: Open a release pull request
13
13
14
-
Let's make a new pull request comparing the `release` branch to the `master` branch.
14
+
Let's make a new pull request comparing the `release` branch to the `main` branch.
15
15
16
16
### :keyboard: Activity: Open a pull request
17
17
18
-
1. Open a [new pull request]({{ prUrl }}) with `base: master` and `compare: release-v1.0`.
18
+
1. Open a [new pull request]({{ prUrl }}) with `base: main` and `compare: release-v1.0`.
19
19
1. Ensure the title of your pull request is **Release v1.0**
Copy file name to clipboardExpand all lines: responses/06.1_wrong-base.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@ Uh oh, the branches in this pull request aren't quite right.
2
2
3
3
### :keyboard: Activity: Fix the base
4
4
5
-
I was expecting `base:` set to `master`, and `compare:` set to `release-v1.0`.
5
+
I was expecting `base:` set to `main`, and `compare:` set to `release-v1.0`.
6
6
7
7
- To change just your base, see [Changing the base branch of a pull request](https://help.github.com/articles/changing-the-base-branch-of-a-pull-request/) for full instructions.
8
-
- To change the `compare:` branch, close this pull request and open a new one with `base:` set to `master` and `compare:` set to `release-v1.0`.
8
+
- To change the `compare:` branch, close this pull request and open a new one with `base:` set to `main` and `compare:` set to `release-v1.0`.
9
9
10
10
<hr>
11
11
<h3align="center">I'll respond in this pull request when you've changed the base, or in your new pull request if you close this one out.</h3>
Copy file name to clipboardExpand all lines: responses/09.2_response.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
## Step 10: Merge the release branch
2
2
3
-
Because the master branch is protected, this pull request couldn't be merged until it received an approval. I've gone ahead and approved this one for you. It looks great!
3
+
Because the main branch is protected, this pull request couldn't be merged until it received an approval. I've gone ahead and approved this one for you. It looks great!
4
4
5
5
It's generally a good idea to make sure that branches, especially long-lived ones like release branches, have the approval of your peers. Go ahead and merge before we move onto our next steps.
Copy file name to clipboardExpand all lines: responses/11.1_hotfix-intro.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ _Sometimes GitHub Pages takes a few minutes to update. Your page might not immed
8
8
9
9
When bugs come up after you release a version, you'll need to address them.
10
10
11
-
We've already created this branch, pull request, and suggested a fix. The suggested change will be merged into the master branch. Later we will `cherry-pick` the hotfix commits into the release branch.
11
+
We've already created this branch, pull request, and suggested a fix. The suggested change will be merged into the main branch. Later we will `cherry-pick` the hotfix commits into the release branch.
Copy file name to clipboardExpand all lines: responses/12.1_backport.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
If you have previous release branches that are impacted by this bug, you might need to make a few retroactive pull requests. Generally, we do this by using [`git cherry-pick`](https://git-scm.com/docs/git-cherry-pick) to apply just those commits that should be backported.
4
4
5
-
In our case, no new changes have been merged into master since we shipped our hotfix, so we can merge the entire branch as is.
5
+
In our case, no new changes have been merged into main since we shipped our hotfix, so we can merge the entire branch as is.
6
6
7
7
### :keyboard: Activity: Backport the hotfix to release v1.0
0 commit comments