Skip to content

first pass on updates to first-contribution script #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions content/contributors/first-contribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ There are some links below the video to help you get these elements ready in cas

Now, we can get started.

### Step 1: Fork the projects repo
### Step 1: Fork the project’s repo

Go to the project’s repository and click the “Fork” button at the top left of the page. This will create a copy of the repository in your own account.

### Step 2: Clone your fork

On your new fork, click the green “Code” button and copy the link that appears there to get the URL for cloning it.

Now, open your terminal (or Git Bash, if you’ve installed Git for Windows) and type the command git clone followed by pasting the URL you just copied. With this, you now have a local copy of your fork.
Now, open your terminal (or Git Bash, if you’ve installed Git for Windows) and type the command `git clone` followed by pasting the URL you just copied. With this, you now have a local copy of your fork.

Finally, change to the directory of the repo you just cloned and add the the project’s repo as the “upstream” remote repository by typing the following:

```bash
git remote add upstream https://github.com/.git
git remote add upstream https://github.com/organization-name/project-name.git
```

### Step 3: Set up your development environment
Expand Down Expand Up @@ -117,6 +117,18 @@ git push -u origin [BRANCH NAME]

Enter your GitHub username and password if requested.

{{< notice note >}}
Entering your username and password every time you run `git push` can get tedious!
Luckily GitHub lets you use an SSH key to authenticate automatically.
Basically this involves creating two special files: one kept secret on your computer, and one uploaded to GitHub. If you want to set that up, see here:

- https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
- https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

You can also set up an SSH key using the `gh` command-line tool: https://cli.github.com/manual/ if you prefer.
Mac and Windows users (but not Linux users!) who prefer to use `git` through a GUI can manage authentication using the [GitHub Desktop app](https://desktop.github.com/).
{{< /notice >}}

### Step 9: Open PR

Now, you can submit your changes to the project’s repo.
Expand Down