method pushInRemoteT documentation in bbn\Api\Git
function(string $repository, string $user, string $token, string $server = 'github.com')
{
$remote = NULL;
//https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git
$params['--repo'] = 'https://'.$user.':'.$token.'@'.$server.'/'.$user.'/'.$repository.'.git';
try{
$output = $this->begin()
->run("git push $remote", $params)
->end();
}
catch(Exception $e) {
die(var_dump($e->getMessage(), $params['--repo']));
return false;
}
return is_object($output);
}
return false;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions