git - How to move my new branch to the latest commit in master branch? -
i created new branch master branch 2 days ago. 1 of team mates checked in few changes master branch, instead of new branch (it should in both master , new branch). now, want move origin of new branch latest commit in master.
i have commits , branches shown below:
c4 <-- new branch / c0 - c1 - c2 - c3 - c5 <-- master
what want is:
c4 <-- new branch / c0 - c1 - c2 - c3 - c5 <-- master
i tried git merge , didn't work.
you need git rebase
#on new branch do: git fetch origin master git rebase origin/master
Comments
Post a Comment