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
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ For more information on the goals of this course, check out the [`course-details
14
14
15
15
## Contribute
16
16
17
-
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/master/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
17
+
See something we could improve? Check out the contributing guide in the [community contributors repository](https://github.com/githubtraining/community-contributors/blob/main/CONTRIBUTING.md) for more information on the types of contributions we :heart: and instructions.
18
18
19
-
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/master/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
19
+
We :heart: our community and take great care to ensure it is fun, safe and rewarding. Please review our [Code of Conduct](https://github.com/githubtraining/community-contributors/blob/main/CODE_OF_CONDUCT.md) for community expectations and guidelines for reporting concerns.
Copy file name to clipboardExpand all lines: responses/02_move-local.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Having a project already stored locally enables you to move it to GitHub rather
17
17
2. Type `git remote add origin {{ repoUrl }}.git`
18
18
3. Type `git add .`
19
19
4. Type `git commit -m "initializing repository"`
20
-
5. Type `git push -u origin master` to push the files you have locally to the remote on GitHub. (You may be asked to log in.)
20
+
5. Type `git push -u origin main` to push the files you have locally to the remote on GitHub. (You may be asked to log in.)
21
21
22
22
**Note:** You can also use a password protected SSH key to connect to GitHub. See [Connecting to GitHub with SSH](https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) in our documentation to learn more.
23
23
@@ -30,10 +30,14 @@ Having a project already stored locally enables you to move it to GitHub rather
30
30
31
31
### Using GitHub Desktop
32
32
33
-
1. In GitHub Desktop, add a local repository by clicking `File > Add a Local Repository`, and then navigating to your local repository.
34
-
2. Create your first commit by typing a summary commit message in the field provided and clicking **Commit to master**
35
-
3. Add the remote by clicking `Repository > Repository Settings...` and pasting the URL from your repository on GitHub into the "Primary remote repository (origin)" field. Click **Save**.
36
-
4. Click **Publish** in the top right corner to push your repository to GitHub.
33
+
GitHub Desktop doesn't allow you to add a new remote for an existing directory, so instead we'll copy the contents of your existing folder to our repo. If you'd like to keep your existing folder, you may want to use the command line or one of the other tools.
34
+
35
+
1. In GitHub Desktop, click on **File** and **Clone a repository**.
36
+
2. Click on the **URL** tab.
37
+
3. Paste the URL from this repository.
38
+
4. Move the contents of your local repository to this directory.
39
+
5. Create a commit by entering a commit message and then clicking on **Commit to main**
40
+
6. Click **Publish branch** in the top right corner to push your repository to GitHub.
37
41
38
42
<hr>
39
43
</details>
@@ -97,7 +101,7 @@ Having a project already stored locally enables you to move it to GitHub rather
97
101
3. Display the **Git Repositories** window by selecting Window > Show View > Other > Git > Git Repositories.
98
102
3. Click the **Create a Git Repository** button on the Git Repositories pane.
99
103
4. Make changes to your project and create a commit.
100
-
5. Push the master branch.
104
+
5. Push the changes to your default branch.
101
105
5. When asked for a remote, paste the URL you copied earlier.
0 commit comments