class Git::Commands::Branch::SetUpstream
Implements the ‘git branch –set-upstream-to` command for configuring upstream tracking
This command sets up tracking information so the specified upstream branch is considered the upstream for the given branch (or current branch if not specified).
@example Set upstream for current branch
set_upstream = Git::Commands::Branch::SetUpstream.new(execution_context) set_upstream.call(set_upstream_to: 'origin/main')
@example Set upstream for a specific branch
set_upstream = Git::Commands::Branch::SetUpstream.new(execution_context) set_upstream.call('feature', set_upstream_to: 'origin/main')
@note ‘arguments` block audited against git-scm.com/docs/git-branch/2.53.0
@see git-scm.com/docs/git-branch git-branch
@api private