class Git::Commands::Remote::SetBranches
‘git remote set-branches` command
Changes the list of branches tracked for the named remote. This can be used to track a subset of the available remote branches after the initial setup.
@example Set the tracked branches for a remote
set_branches = Git::Commands::Remote::SetBranches.new(execution_context) set_branches.call('origin', 'main', 'develop')
@example Append additional tracked branches without replacing existing ones
set_branches = Git::Commands::Remote::SetBranches.new(execution_context) set_branches.call('origin', 'release/*', add: true)
@note ‘arguments` block audited against git-scm.com/docs/git-remote/2.53.0
@see git-scm.com/docs/git-remote git-remote
@api private