class Git::Commands::SymbolicRef::Update

Creates or updates a symbolic ref via ‘git symbolic-ref`

Given two arguments, creates or updates a symbolic ref ‘<name>` to point at the given branch `<ref>`.

@example Update HEAD to point to a branch

cmd = Git::Commands::SymbolicRef::Update.new(execution_context)
cmd.call('HEAD', 'refs/heads/main')

@example Update HEAD with a reflog message

cmd = Git::Commands::SymbolicRef::Update.new(execution_context)
cmd.call('HEAD', 'refs/heads/main', m: 'switching to main')

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

@see Git::Commands::SymbolicRef

@see git-scm.com/docs/git-symbolic-ref git-symbolic-ref documentation

@api private