Skip to contents

This function returns the name of the current Git branch. It uses the system function to execute the git branch --show-current command.

Usage

get_git_branch()

Value

A character string representing the current Git branch.