Keeping Your Fork Updated
How to Keep Your Fork Synced with the Original Repository
Maintaining an up-to-date fork ensures you have the latest updates and features from the original repository. This guide will show you how to synchronize your fork with the original repository.
Fork the Repository
To create a fork, click the “Fork” button located at the top right corner of the repository page.
Clone Your Fork
Clone your fork using the command below:
git clone git@github.com:[your-fork-name].gitRefer to the Getting Started section for the initial project setup.
Add the Original Repository as a Remote
Add the original repository as a remote source:
git remote add upstream https://github.com/boilerpro/boilerpro-backend.gitgit remote add upstream https://github.com/boilerpro/boilerpro-frontend.gitFetch the Latest Changes from the Original Repository
Retrieve the latest updates from the original repository:
git fetch upstreamMerge the Changes from the Original Repository
Incorporate the fetched updates into your fork:
git merge upstream/masterIf there are any conflicts, resolve them manually and commit the changes.
Push the Changes to Your Fork
Upload the merged updates to your fork:
git push origin masterYour fork is now successfully updated with the latest changes from the original repository.