async function getTagRef(tag, execaOptions) {
  return (await execa("git", ["show-ref", tag, "--hash"], execaOptions)).stdout;
}
Get the reference of a tag

@param {String} tag The tag name to get the reference of.
@param {Object} [execaOpts] Options to pass to `execa`.