Merging

Download git eBook

Syntax

  • git merge another_branch [options]
  • git merge --abort

Parameters

ParameterDetails
-mMessage to be included in the merge commit
-vShow verbose output
--abortAttempt to revert all files back to their state
--ff-onlyAborts instantly when a merge-commit would be required
--no-ffForces creation of a merge-commit, even if it wasn't mandatory
--no-commitPretends the merge failed to allow inspection and tweaking of the result
--statShow a diffstat after merge completion
-n/--no-statDon't show the diffstat
--squashAllows for a single commit on the current branch with the merged changes

Related Examples

Stats

158 Contributors: 6
Friday, August 19, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook