export function branchName(cwd?: string): string {
  let branch = '';

  try {
    const result = execSync('git rev-parse --abbrev-ref HEAD', {