backend/components/AGitRepository.php
/**
	 * Pushes a branch to a remote repository.
	 * @param string|AGitRemote $remote the remote repository to push to
	 * @param string|AGitBranch $branch the git branch to push, defaults to "master"
	 * @param boolean $force whether to force the push or not, defaults to false
	 * @return string the response from git
	 */
Pushes a branch to a remote repository.
@param string|AGitRemote $remote the remote repository to push to
@param string|AGitBranch $branch the git branch to push, defaults to "master"
@param boolean $force whether to force the push or not, defaults to false
@return string the response from git
Pushes a branch to a remote repository . @param string|AGitRemote $remote the remote repository to push to @param string|AGitBranch $branch the git branch to push defaults to " master " @param boolean $force whether to force the push or not defaults to false @return string the response from git
public function push($remote, $branch = "master", $force = false)
	{
		if ($remote instanceof AGitRemote) {
			$remote = $remote->name;
		}
		if ($branch instanceof AGitBranch) {
			$branch = $branch->name;
		}
		if ($force) {
			$command = "push -f ".$remote." ".$branch;
		}
		else {
			$command = "push ".$remote." ".$branch;
		}
		return $this->run($command);
	}
public function push ( $ remote , $ branch = " master " , $ force = false ) { if ( $ remote instanceof AGitRemote ) { $ remote = $ remote -> name ; } if ( $ branch instanceof AGitBranch ) { $ branch = $ branch -> name ; } if ( $ force ) { $ command = " push -f  " . $ remote . " " . $ branch ; } else { $ command = " push  " . $ remote . " " . $ branch ; } return $ this -> run ( $ command ) ; }
Pushes a branch to a remote repository.
Pushes a branch to a remote repository .