Tutorials
Keeping your fork up to date
How to keep fork up to date with the original repository.
It’s important to keep your fork up-to-date with the original repository. This ensures that your fork has the latest changes and features. This guide will show you how to keep your fork up-to-date with the original repository.
Fork the repository
To fork the repository, click “Fork” button on the top right corner of the repository page.
Clone your fork
git clone git@github.com:[your-fork-name].git
Follow the instructions in VILT Stack or TALL Stack for initial setup of your project.
Add the original repository as a remote
git remote add upstream https://github.com/karakhanyans-tools/larafast.git
For TALL stack:
git remote add upstream https://github.com/karakhanyans-tools/larafast-tall.git
For Directories:
git remote add upstream https://github.com/karakhanyans-tools/larafast-directories.git
Fetch the latest changes from the original repository
git fetch upstream
Merge the changes from the original repository
git merge upstream/master
If you see some conflicts, resolve them manually and then commit the changes.
Push the changes to your fork
git push origin master
That’s it. Your fork is now up-to-date with the original repository.