get changes from master after creating branch
Using Eclipse/EGit:
- Open the "Git Repositories" View
- Make sure
branch1
is checked out (respectively the branch you want to update with changes of the remotemaster
branch). Right-click the repository you're working on and click on
Fetch from Upstream
. This will fetch information about new commits on the remote repository (in your case the new commits that were added to the master branch after your branch (branch1
) was created).Expand the
Remote Tracking
node and right-click themaster
branch. Select eitherMerge
orRebase on
. Both options update your branch (branch1
) with the changes that meanwhile were added to themaster
branch.
The difference between Merge
and Rebase on
: https://stackoverflow.com/a/16666418/5207900
Related videos on Youtube
user9735824
Updated on July 15, 2022Comments
-
user9735824 almost 2 years
I am using
Egit
witheclipse
for working on my java project. I created a branch calledbranch1
from master and started working on it.In the mean time my colleague created another branch
branch2
from master, made some changes and mergedbranch2
back to master.Now I need to get all the changes that were made on master to my branch
branch1
.How can I achieve this using
eclipse
orgithub
and not using any command.