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.
Asked
Active
Viewed 80 times
1 Answers
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:

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
Thanks. I understand. – Mr. Hax Jun 08 '18 at 12:26