async function verifyAuth(repositoryUrl, branch, execaOptions) {
  try {
    await execa("git", ["push", "--dry-run", "--no-verify", repositoryUrl, `HEAD:${branch}`], execaOptions);
  } catch (error) {
    debug(error);
    throw error;
  }
}
Verify the write access authorization to remote repository with push dry-run.

@param {String} repositoryUrl The remote repository URL.
@param {String} branch The repository branch for which to verify write access.
@param {Object} [execaOpts] Options to pass to `execa`.

@throws {Error} if not authorized to push.