1

I have a master branch and a feature branch. There have been no new commits in the master branch since the feature branch diverged. Now, I have finished the feature branch. How, do I update the master branch to point to the tip of the feature branch? Thanks.

Mr. Hax
  • 195
  • 1
  • 1
  • 10

1 Answers1

2

Simply merge feature into master: the merge will be a fast-forward one, meaning master HEAD will be updated to feature's HEAD

git checkout master
git merge feature

See more at "What is the difference between git merge and git merge --no-ff?".

From this article:

https://www.defproc.co.uk/blog/uploads/2012/05/ff-merge-300x212.png

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250