Skip to content

GitRemote

GitRemote(connected, branches, tags)

Abstraction of GitRemote

Initialize GitRemote object

Parameters:

Name Type Description Default
connected bool

is Git connected to remote

required
branches List[str]

list of remote branches

required
tags List[str]

list of remote tags

required
Source code in TM1py/Objects/GitRemote.py
def __init__(self, connected: bool, branches: List[str], tags: List[str]):
    """Initialize GitRemote object
    :param connected: is Git connected to remote
    :param branches: list of remote branches
    :param tags: list of remote tags
    """
    self._connected = connected
    self._branches = branches
    self._tags = tags

branches property

connected property

tags property