Git · Middle · Question 32 of 75
How do you keep your fork in sync with the original repository?
- ✓Correct answer: Add it as
upstream, fetch, and merge or rebase from it - 2Delete the fork and fork the repository again
- 3Push your branch to the original repository directly
Explanation
git remote add upstream <url>, then git fetch upstream and git rebase upstream/main. Platforms also offer a "Sync fork" button for the default branch.