Skip to content

Commit 4537363

Browse files
author
Adria Cidre
committed
Added push method
1 parent 6650629 commit 4537363

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Git.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,20 @@ public function add_tag($tag, $message = null)
433433
return $this->run("tag -a $tag -m $message");
434434
}
435435

436+
437+
/**
438+
* Push specific branch to a remote
439+
*
440+
* Accepts the name of the remote and local branch
441+
*
442+
* @param string $remote
443+
* @param string $branch
444+
* @return string
445+
*/
446+
public function push($remote, $branch)
447+
{
448+
return $this->run("push --tags $remote $branch");
449+
}
436450
}
437451

438452
/* End Of File */

0 commit comments

Comments
 (0)