git-merge-into (1) - Linux Man Pages
git-merge-into: Merge one branch into another
NAMEgit-merge-into - Merge one branch into another
SYNOPSISgit merge-into [src] <dest> [--ff-only]
DESCRIPTIONMerge one branch into another, and keep yourself on current branch. If src branch not given, it will merge current one to dest.
The name of the branch will be merged into. If this not given, use current branch as default.
The name of the branch to merge into.
EXAMPLESAssume the following history exists and the current branch is src:
A---B---C src(current) / D---E---F---G dest
After running git merge-into dest, it will look like this:
A---B---C src(current) / \ D---E---F---G---H dest
The H commit will record the merge result, just like what git merge does. And src is still the current branch.
The default implementation of merge-into use git checkout and git merge, which may cause temporary change in the working tree. If you make sure your branch can be merged fast-forward, add --ff-only to avoid files change.
AUTHORWritten by spacewander <spacewanderlzx [at] gmail.com>