This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Depends on GitPython | |
pip install GitPython | |
""" | |
from git import Repo | |
def get_current_branch_name(repo_path) | |
""" | |
Gets the name of the active Git branch as a string. |