Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 6a62909

Browse files
authored
Merge pull request #24 from githubtraining/rename-main
Rename main
2 parents 241c9f0 + 104a5d8 commit 6a62909

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ For more information on the goals of this course, check out the [`course-details
1414

1515
## Contribute
1616

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.
1818

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.
2020

2121
## License
2222

responses/02_move-local.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Having a project already stored locally enables you to move it to GitHub rather
1717
2. Type `git remote add origin {{ repoUrl }}.git`
1818
3. Type `git add .`
1919
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.)
2121

2222
**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.
2323

@@ -30,10 +30,14 @@ Having a project already stored locally enables you to move it to GitHub rather
3030

3131
### Using GitHub Desktop
3232

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.
3741

3842
<hr>
3943
</details>
@@ -97,7 +101,7 @@ Having a project already stored locally enables you to move it to GitHub rather
97101
3. Display the **Git Repositories** window by selecting Window > Show View > Other > Git > Git Repositories.
98102
3. Click the **Create a Git Repository** button on the Git Repositories pane.
99103
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.
101105
5. When asked for a remote, paste the URL you copied earlier.
102106
6. Click next, and enter the branch name.
103107

0 commit comments

Comments
 (0)