()
Get the current branch name.
Get the current branch name.
Get the current branch name .
def get_current_branch():
    """
    Get the current branch name.
    """
    command = 'git rev-parse --abbrev-ref HEAD'

    with chdir(get_root()):
        return run_command(command, capture='out').stdout.strip()
def get_current_branch ( ) : command = 'git rev-parse --abbrev-ref HEAD' with chdir ( get_root ( ) ) : return run_command ( command , capture = 'out' ) . stdout . strip ( )