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: content/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ versions:
26
26
3. Change the current working directory to your local project.
27
27
4. Initialize the local directory as a Git repository.
28
28
```shell
29
-
$ git init
29
+
$ git init -b main
30
30
```
31
31
5. Add the files in your new local repository. This stages them for the first commit.
32
32
```shell
@@ -63,7 +63,7 @@ versions:
63
63
3. Change the current working directory to your local project.
64
64
4. Initialize the local directory as a Git repository.
65
65
```shell
66
-
$ git init
66
+
$ git init -b main
67
67
```
68
68
5. Add the files in your new local repository. This stages them for the first commit.
69
69
```shell
@@ -100,7 +100,7 @@ versions:
100
100
3. Change the current working directory to your local project.
101
101
4. Initialize the local directory as a Git repository.
102
102
```shell
103
-
$ git init
103
+
$ git init -b main
104
104
```
105
105
5. Add the files in your new local repository. This stages them for the first commit.
0 commit comments