Spot the flag mistake when trying to always create a merge commit on main.
Codebash
# Goal: always create a merge commit when merging feature into main,
# even if a fast-forward is possible (mirrors Bitbucket's 'Merge commit' strategy)
git checkout main
git merge --ff-only feature
git push origin main
What is the bug in this script given the stated goal?