git merge --no-ff code example
Example 1: git revert merge
git revert -m 1 <merge-commit>
Example 2: git revert pr merge
git revert -m 1 b76a5f1f5d3b323679e466a1a1d5f93c8828b269 (Commit Number)
Example 3: git merge tag to branch and squash commits
git checkout master
git merge --squash tag
git commit