views:

44

answers:

2

Hi guys!

I'm kinda new to git and now I'm in this situation:

  • i have like four branches (master, b1,b2,b3)
  • after i worked on b1-b3, i realized i have something to change on branch master that should be in all other branches
  • i changed what i needed in master and... here is my problem:

how do i update all other branches with master branch code?

Give me an idea, something, because I don't even know what should I search for.

Thanks!

Ok, me stupid:

http://progit.org/book/ch3-6.html

git rebase master

was THAT easy!

+3  A: 

checkout each branch

git checkout b1

then merge

git merge origin/master

then push

git push origin master
Climber104
+1  A: 

You can merge, or you can apply individual commits across branches by using git cherry-pick.

Brian Agnew