open a terminal and cd into the directory of the repo you want to work with and run:
git rev-parse HEAD
It returns a long string similar to this:
919a3996b3093b867073ff5c662b1f2cd4393357
from which you only need the first seven caracter. You should see them in the corresponding commit in bitbucket or github to double check in case of doubt.