The following command should do the magic:
$ git log <SHA1>..master --ancestry-path --merges --oneline -1
Here, sha1 is the shorthand version of commit ID
You can get that by using the following command:
$ git show -s --format=%h
To see the full commit ID use this:
$ git show -s --format=%H