Пример #1
0
 /**
  * Rename the remote.
  *
  * @param $old
  * @param $new
  * @return void
  * @throws GitException
  */
 public function renameRemote($old, $new)
 {
     $this->git->exec('remote-rename', [$old, $new]);
 }
Пример #2
0
 /**
  * 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]);
 }