@@ -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~~~
110110Counting objects: 3, done.
111111Writing objects: 100% (3/3), 226 bytes | 0 bytes/s, done.
112112Total 3 (delta 0), reused 0 (delta 0)
113113To 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 ".
120120The ` -u ` flag tells git to remember the parameters, so that next time we can simply run ` git push `
121121and Git will know what to do.
122122
123123Pushing 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 ` .
125125The flag ` -u ` refers to ` -set-upstream ` , so when we say pushing changes upstream, it refers to the remote repository.
126126
127127You 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 '.
140140nothing 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
145145and everything is in order.
146146
147147We 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.
241241Writing objects: 100% (3/3), 272 bytes | 0 bytes/s, done.
242242Total 3 (delta 0), reused 0 (delta 0)
243243To 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.
276276remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
277277Unpacking objects: 100% (3/3), done.
278278From https://github.com/<your_github_username>/hello-world
279- 8e2eb99..0f5a7b0 master -> origin/master
279+ 8e2eb99..0f5a7b0 main -> origin/main
280280Updating 8e2eb99..0f5a7b0
281281Fast-forward
282282 README.md | 1 +
0 commit comments