/** * Rename the remote. * * @param $old * @param $new * @return void * @throws GitException */ public function renameRemote($old, $new) { $this->git->exec('remote-rename', [$old, $new]); }
/** * Rename the remote. * * @param $old * @param $new * @return void * @throws GitException */ public function renameRemote($old, $new) { $this->git->exec('remote-rename', [$old, $new]); $this->config['remotes'][$new] = $this->config['remotes'][$old]; unset($this->config['remotes'][$old]); }