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
Copy file name to clipboardExpand all lines: README.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
@@ -34,7 +34,7 @@ This usually looks like this:
34
34
2.`git diff` this will show the actual code that has been changed. Again, we want to make sure we don't push anything to GitHub that shouldn't be there.
35
35
3. If everything looks good,`git add nameOfMyFile.js` This adds our file(s) to the 'staging area'
36
36
4.`git commit -m "The sentence I want associated with this commit message"` which tells your computer 'hey, next time code is pushed to GitHub, take all of this code with it.'
37
-
5.`git push origin master` My code is now on GitHub.
37
+
5.`git push-uorigin master` My code is now on GitHub. The`-u` tells GitHub to create a master branch if one doesn't already exist. You can leave it out if the branch you're pushing to already exists.
38
38
39
39
* If you did this correctly, check your GitHub repository for your new code.