Skip to content

Commit 64ff0b2

Browse files
authored
step 6
1 parent 0c04cfa commit 64ff0b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

forking_workflow.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,15 @@ Doing so both backs up your changes, and gets you ready to create a pull request
7474
Now, to integrate your changes into the "Parent" repo, you can create a Pull Request via Github.
7575
Navigate to https://github.com/<YOUR_USERNAME>/cnc_github_tutorial.
7676

77+
78+
## 6. Fetch changes from the parent repo to your local repo
79+
While you were busy working on your awesome feature, other changes might've been merged into "Parent" as well, so before working on anything else, its always good to have your local repo up-to-date with what's in "Parent". In Step 2, we already configured our local git repo to track the "Parent" repo as "Upstream", so now we can just do:
80+
```
81+
git fetch upstream # fetches upstream branches
82+
git merge upstream/main # merges upstream/main into your local main branch
83+
```
84+
Alternatively, a `git pull` command also works:
85+
```
86+
git pull upstream main
87+
```
88+
Now, any changes that have been merged into "Parent" should also be reflected in your local repo.

0 commit comments

Comments
 (0)