public function push($repository = null, $refspec = null)
    {
        $command = 'push';

        if ($repository) {
            $command .= " $repository";
        }

        if ($refspec) {
            $command .= " $refspec";
        }

        $this->getClient()->run($this, $command);

        return $this;
    }
public function push($repository = null, $refspec = null)
    {
        $command = 'push';

        if ($repository) {
            $command .= " $repository";
        }

        if ($refspec) {
            $command .= " $refspec";
        }

        $this->getClient()->run($this, $command);

        return $this;
    }
public function push ( $ repository = null , $ refspec = null ) { $ command = 'push' ; if ( $ repository ) { $ command .= " $repository" ; } if ( $ refspec ) { $ command .= " $refspec" ; } $ this -> getClient ( ) -> run ( $ this , $ command ) ; return $ this ; }
Update remote references.

@param string $repository Repository to be pushed
@param string $refspec    Refspec for the push
Update remote references .