Skip to content

Commit 62c3f8c

Browse files
authored
Merge pull request #101 from burrowsdt/master_to_main
Change text of three episodes to replace 'master' with 'main'
2 parents 13711c5 + 0653e7f commit 62c3f8c

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

episodes/02-getting-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ $ git status
7373
~~~
7474
{: .language-bash }
7575
~~~
76-
On branch master
76+
On branch main
7777
No commits yet
7878
nothing to commit (create/copy files and use "git add" to track)
7979
~~~
8080
{: .output}
8181

82-
The output tells us that we are on the master branch (more on this later) and that we have nothing to commit (no
82+
The output tells us that we are on the main branch (more on this later) and that we have nothing to commit (no
8383
unsaved changes).
8484

8585

@@ -105,7 +105,7 @@ $ git status
105105
~~~
106106
{: .language-bash }
107107
~~~
108-
On branch master
108+
On branch main
109109
No commits yet
110110
Untracked files:
111111
(use "git add <file>..." to include in what will be committed)
@@ -132,7 +132,7 @@ $ git status
132132
~~~
133133
{: .language-bash }
134134
~~~
135-
On branch master
135+
On branch main
136136
137137
No commits yet
138138
@@ -155,7 +155,7 @@ $ git status
155155
~~~
156156
{: .language-bash }
157157
~~~
158-
On branch master
158+
On branch main
159159
160160
No commits yet
161161
@@ -191,7 +191,7 @@ $ git commit -m 'Add index.md'
191191
~~~
192192
{: .language-bash }
193193
~~~
194-
[master (root-commit) e9e8fd3] Add index.md
194+
[main (root-commit) e9e8fd3] Add index.md
195195
1 file changed, 1 insertion(+)
196196
create mode 100644 index.md
197197
~~~

episodes/03-sharing.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,25 @@ will have to "push" our local changes to the GitHub repository. We do this using
103103
`git push` command:
104104

105105
~~~
106-
$ git push -u origin master
106+
$ git push -u origin main
107107
~~~
108108
{: .language-bash }
109109
~~~
110110
Counting objects: 3, done.
111111
Writing objects: 100% (3/3), 226 bytes | 0 bytes/s, done.
112112
Total 3 (delta 0), reused 0 (delta 0)
113113
To https://github.com/<your_github_username/hello-world
114-
* [new branch] master -> master
115-
Branch master set up to track remote branch master from origin.
114+
* [new branch] main -> main
115+
Branch main set up to track remote branch main from origin.
116116
~~~
117117
{: .output}
118118

119-
The nickname of our remote repository is "origin" and the default local branch name is "master".
119+
The nickname of our remote repository is "origin" and the default local branch name is "main".
120120
The `-u` flag tells git to remember the parameters, so that next time we can simply run `git push`
121121
and Git will know what to do.
122122

123123
Pushing our local changes to the Github repository is sometimes referred to as "pushing changes `upstream` to Github".
124-
The word `upstream` here comes from the git flag we used earlier in the command `git push -u origin master`.
124+
The word `upstream` here comes from the git flag we used earlier in the command `git push -u origin main`.
125125
The flag `-u` refers to `-set-upstream`, so when we say pushing changes upstream, it refers to the remote repository.
126126

127127
You may be prompted to enter your GitHub username and password to complete the command.
@@ -135,13 +135,13 @@ $ git status
135135
~~~
136136
{: .language-bash }
137137
~~~
138-
On branch master
139-
Your branch is up-to-date with 'origin/master'.
138+
On branch main
139+
Your branch is up-to-date with 'origin/main'.
140140
nothing to commit, working tree clean
141141
~~~
142142
{: .output}
143143

144-
This output lets us know where we are working (the master branch). We can also see that we have no changes to commit
144+
This output lets us know where we are working (the main branch). We can also see that we have no changes to commit
145145
and everything is in order.
146146

147147
We can use the `git diff` command to see changes we have made before making a commit. Open index.md with any text
@@ -241,7 +241,7 @@ Counting objects: 3, done.
241241
Writing objects: 100% (3/3), 272 bytes | 0 bytes/s, done.
242242
Total 3 (delta 0), reused 0 (delta 0)
243243
To https://github.com/<your_github_username>/hello-world
244-
e9e8fd3..8e2eb99 master -> master
244+
e9e8fd3..8e2eb99 main -> main
245245
~~~
246246
{: .output}
247247

@@ -276,7 +276,7 @@ remote: Compressing objects: 100% (2/2), done.
276276
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
277277
Unpacking objects: 100% (3/3), done.
278278
From https://github.com/<your_github_username>/hello-world
279-
8e2eb99..0f5a7b0 master -> origin/master
279+
8e2eb99..0f5a7b0 main -> origin/main
280280
Updating 8e2eb99..0f5a7b0
281281
Fast-forward
282282
README.md | 1 +

episodes/05-github-pages.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ There are various options for setting up a GitHub Pages site. Let's run through
4646

4747
GitHub Pages uses a special branch in your GitHub repository to look for website content,
4848
and by default this is the branch with the name 'gh-pages'.
49-
You can actually change this, under repository settings, to use for instance the master branch instead,
49+
You can actually change this, under repository settings, to use for instance the main branch instead,
5050
but let's stick with the default for now.
5151

5252
It's possible to create a new branch directly on GitHub, but we will use the command line now.
@@ -86,8 +86,8 @@ Branch gh-pages set up to track remote branch gh-pages from origin.
8686
~~~
8787
{: .output}
8888

89-
You might remember from earlier that we did `git push -u origin master` to
90-
set up the master branch. The `-u` is a shorthand for `--set-upstream`, so
89+
You might remember from earlier that we did `git push -u origin main` to
90+
set up the main branch. The `-u` is a shorthand for `--set-upstream`, so
9191
above you could also have typed `git push -u origin gh-pages`.
9292

9393
And remember, we only have to do this the first time we push to a new branch.
@@ -115,7 +115,7 @@ Usually it's available instantly, but it can take a few seconds and in the worst
115115
> You can preview how it will look before you commit changes.
116116
> 5. Once you are ready to commit, enter a short commit message,
117117
> select "Create a new branch for this commit and start a pull request"
118-
> and press "Propose file change" to avoid commiting directly to the master branch.
118+
> and press "Propose file change" to avoid commiting directly to the main branch.
119119
>
120120
> ![Commit and create pull request](../fig/github-commit-pr.png)
121121
>

0 commit comments

Comments
 (0)