0

I have a master, from which I created another branch, and did some commits on this new branch. Meanwhile some other work/commits has also been happening in master at thesame time.

So, I now want to get all the latest updates (commits) that has happened in master into my branch. How do i go about this?

bahrep
  • 29,961
  • 12
  • 103
  • 150
  • You should look into [merging](https://stackoverflow.com/documentation/git/291/merging#t=201708231048567374741) – Aratz Aug 23 '17 at 10:50
  • 5
    Possible duplicate of [Update Git branches from master](https://stackoverflow.com/questions/3876977/update-git-branches-from-master) – Francesco Aug 23 '17 at 10:51

1 Answers1

1

Rebase

Grab your branch and connect it to top of current master by:

git rebase master

(while being in the branch you want to update)

petrpulc
  • 940
  • 6
  • 22