File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,23 @@ $ git add shipping-forecast.md
40
40
$ git commit -m " Add a file for the shipping forecast"
41
41
```
42
42
43
+ <!-- Add link to previous lesson -->
44
+
43
45
Create a public remote ` weather ` repository on GitHub and
44
46
push your local repository to the remote:
45
47
46
48
``` bash
47
- $ git remote add origin
[email protected] :
mo-eormerod /weather.git
49
+ $ git remote add origin
[email protected] :
< your username > /weather.git
48
50
$ git push
49
51
```
52
+
53
+ The first time you push to a remote repository you will get this message:
54
+
55
+ ``` bash
56
+ fatal: The current branch master has no upstream branch.
57
+ To push the current branch and set the remote as upstream, use
58
+
59
+ git push --set-upstream main
60
+ ```
61
+
62
+ You can copy and paste the suggested command.
You can’t perform that action at this time.
0 commit comments