Gush\Helper\GitConfigHelper::setRemote PHP Метод

setRemote() публичный Метод

public setRemote ( string $name, string $url, string $pushUrl = null )
$name string
$url string
$pushUrl string Optional push-url
    public function setRemote($name, $url, $pushUrl = null)
    {
        if (!$this->hasGitConfig('remote.' . $name . '.url')) {
            $this->processHelper->runCommand(['git', 'remote', 'add', $name, $url]);
        } else {
            $this->setGitConfig('remote.' . $name . '.url', $url, true);
        }
        if ($pushUrl) {
            $this->setGitConfig('remote.' . $name . '.pushurl', $pushUrl, true);
        }
    }