def branches(self):
    '\n        获取所有分支\n\n        @param branch:\n        @param kwargs:\n        @return:\n        '
    branches = PyRepo(self.path).remote().refs
    return [str(branch).strip().lstrip('origin').lstrip('/') for branch in branches if (not str(branch).strip().startswith('origin/HEAD'))]
获取所有分支

@param branch:
@param kwargs:
@return:
def branches(self):
    '\n        获取所有分支\n\n        @param branch:\n        @param kwargs:\n        @return:\n        '
    branches = PyRepo(self.path).remote().refs
    return [str(branch).strip().lstrip('origin').lstrip('/') for branch in branches if (not str(branch).strip().startswith('origin/HEAD'))]