How To pull code changes from upstream to forked repository in IntelliJ Idea
A simple guide for pulling modifications to code from the source repository into the forked repository.
You have forked a repository. Now, you want to fetch all the changes from the source ( upstream) repository in IntelliJ Idea?
Let’s see how to do that:
Step 1) In IntelliJ, open your project.
Step 2) Go to Git -> Pull. A dialogue box opens up. Currently, you might be seeing only 1 option there which would be your forked repository and current branch.
Step 3) To get more options in git pull menu, go to Git -> Managed Remotes. A dialogue box will open up.
Step 4) Click on Add (+) icon and enter upstream repository details.
Step 5) Go back to Git -> Pull. Now, you should get 2 options, one for your forked repository and one for upstream repository.
Hurray… ! You can now pull from upstream repository easily.