code: def get_git_branch(git_path='git'):
      
      branch_match = call((git_path, 'rev-parse', '--symbolic-full-name', 'HEAD'))
      if branch_match == "HEAD":
          return None
      else:
          return os.path.basename(branch_match)
docs: Returns the name of the current git branch