def METHOD_NAME(cwd: Optional[str] = None) -> str:
    git_branch = (
        subprocess.check_output(["git", "branch", "--show-current"], cwd=cwd)
        .decode("utf-8")
        .strip()
    )
    return git_branch