Switches to an existing remote

await repo.switchRemote(remoteName)

This will set the current remote to remoteName.

If remoteName does not exist, it will throw a GILMORE_REMOTE_SWITCH_UNKNOWN_REMOTE_NAME error.

See also

  • createRemote: To create the remote without switching to it
  • setRemote: To create a remote and switch to it directly