class Git::Commands::Remote::Add

‘git remote add` command

Adds a new remote to the repository, associating a name with a URL and configuring how tracking branches and tags are handled.

@example Add a remote with a name and URL

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

@example Add a remote and immediately fetch

add = Git::Commands::Remote::Add.new(execution_context)
add.call('upstream', 'https://example.com/upstream.git', fetch: true)

@example Track a specific branch and disable tag import

add = Git::Commands::Remote::Add.new(execution_context)
add.call('origin', 'https://example.com/repo.git', track: 'main', no_tags: 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