How to update a forked repository to match with the origin repository on Github

I am a developer from Delhi, India
Search for a command to run...

I am a developer from Delhi, India
No comments yet. Be the first to comment.
DISCLAIMER: This might not be the most well-written article since I haven't written in a while and I just wanted to get back to writing with a short article about my experience of the day, so sorry about that I previously used this repository for my...

The release of NextJS 13 brought about a plethora of new and impressive features, with one standout being the updated data fetching and management process. The fetch API replaced the more complicated functions, including getServerSideProps, getStatic...

Looking for a safe and reliable way to authenticate users? Consider implementing magic links. They offer a secure alternative to traditional passwords and can help mitigate the risk of password leaks and forgotten passwords. Magic Link authentication...

Neovim is a powerful text editor that can be customized with plugins to enhance its functionality. In this article, we will explore the top 10 essential Neovim plugins. These plugins can help improve your Neovim experience by adding features such as ...

A type-safe and zero-runtime version of Tailwind CSS

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!