For a single command, please try git rebase main feature_branch && git checkout main && git merge --ff-only feature_branch
git rebase main feature_branch && git checkout main && git merge --ff-only feature_branch