The following steps will show you how to force a merge commit:
- To force a merge commit, you need to use the --no-ff flag; no-ff means no fast forward. We will also use the --quiet flag to minimize the output and --edit to allow us to edit the commit message. Unless you have a merge conflict, Git will create the merge commit for you automatically:
$ git merge origin/stable-3.2 --no-ff --edit --quiet Auto-merging org.eclipse.jgit.test/tst/org/eclipse/jgit/test/resources/SampleDat Removing org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GCTe Auto-merging org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.3.target
-
The commit message editor will open, and you can write a commit message. Closing the ...