Class: remote

GitManager. remote


new remote()

All function related to distant repository

Methods


<static> branch()

Get name of branch of the remote
Returns:
branch name
Type
Object

<static> branches()

Get list of local branches
Returns:
Array og branches name
Type
Object

<static> commit()

Get the latest Hash commit from remote
Returns:
hash
Type
Object

<static> fetch()

Wrapper of fetch command

<static> pull()

Wrapper to pull function
Returns:
0: fail, 1: success
Type
Object

<static> push()

Wrapper to push function
Returns:
0: fail, 1: success
Type
Object

<static> status()

Check if repository isupdate, behind or after the remote
Returns:
-1: pull, 0: update, 1: push
Type
Object