How to deploy previous commits in the Gitlab

I’ve setup Gitlab and I’m trying to follow the workflow mentioned here: Gitlab Production branch flow.

Now my repository looks like this:

And I’ve been asked to merge only commit A of the master branch with the production branch. What is the best way to do this?

I’m stuck at this. Any help is greatly appreciated.