File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ git add README.md .gitignore
119119# commit your changes (a snapshot of the staging area, including anything added)
120120git commit -m "added .gitignore and edited README.md"
121121
122- # push changes to github
122+ # push changes to github (-u/--set-upstream is only required the first time)
123123git push --set-upstream origin my-branch
124124
125125# now go to GitHub and open a pull request, then merge my-branch into master
@@ -155,7 +155,7 @@ git commit -m "added README to initial commit"
155155# (replace `myusername` with your username)
156156git remote add origin https://github.com/myusername/my-repo.git
157157
158- # push changes to github
158+ # push changes to github (-u/--set-upstream is only required the first time)
159159git push -u origin master
160160
161161# notice that you don't have to open a pull request because your remote repo is master,
You can’t perform that action at this time.
0 commit comments