After you [[fork]] a repo, you may want to set up a remote connection to the parent repo to enable reverse pull requests. This will allow you to `pull` any changes in the parent repo. By convention, remote connections to parent repos are named `upstream`.
Simply [[add a remote connection]] the parent repo with the name `upstream`.
```bash
git remote add upstream <parent repo address>
```
When needed, pull changes from the parent repo (i.e., a reverse pull request).
```bash
git pull upstream main
```
After making any additional edits, push those changes back up to your forked repo.
```bash
git push origin main
```
> [!info]
> You do not need to include `origin main` when pushing from the main branch to your own repo since those are the defaults. However, being explicit can help you think about what you're doing when you have multiple remote connections in a single `git` repository.
If you'd prefer to visually inspect the changes which will result from the `pull`, you can do a [[reverse pull request on GitHub]].