class Git::Commands::Tag::Create

Implements the ‘git tag` command for creating new tags

This command creates a new tag reference pointing at the current HEAD or a specified commit/object.

@example Create a lightweight tag

create = Git::Commands::Tag::Create.new(execution_context)
create.call('v1.0.0')

@example Create an annotated tag

create = Git::Commands::Tag::Create.new(execution_context)
create.call('v1.0.0', message: 'Release version 1.0.0')

@example Create a signed tag at a specific commit

create = Git::Commands::Tag::Create.new(execution_context)
create.call('v1.0.0', 'abc123', sign: true, message: 'Signed release')

@example Force replace an existing tag

create = Git::Commands::Tag::Create.new(execution_context)
create.call('v1.0.0', force: true)

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

@see Git::Commands::Tag

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

@api private