class Git::Commands::Remote::SetUrlAdd

‘git remote set-url –add` command

Appends a new URL to the named remote’s fetch or push URL list.

@example Add an additional fetch URL to an existing remote

set_url_add = Git::Commands::Remote::SetUrlAdd.new(execution_context)
set_url_add.call('origin', 'https://mirror.example.com/repo.git')

@example Add a push URL to an existing remote

set_url_add = Git::Commands::Remote::SetUrlAdd.new(execution_context)
set_url_add.call('origin', 'https://push.example.com/repo.git', push: true)

@note ‘arguments` block audited against git-scm.com/docs/git-remote/2.53.0

@see Git::Commands::Remote

@see git-scm.com/docs/git-remote git-remote

@api private