When you want to contribute to open source, one of the most important things is understand, forking and branching.
Once you have updated some code and made a pull request, you might not do anything with your forks for a lot of time. So the next time you do something, you will have to update it. But how?
We'll add a remote to our repository called upstream with the follow command:
git remote add upstream https://github.com/OriginalRepo/OriginalProject.git
Make sure to use the link of the origin repository
Now you canverify by running
git remote -v
Run the following command in order to fetch all the updated banches and commits from upstream
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
Note that you might have a different base branch that master.
That's it.. Have fun!
I have started my own blog platform at https://blogs.livecode247.com
Have taken this content from there