Git Merging

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any Git Question?