This function commits all changes in the current directory to Git, creates a tag for the specified version, and pushes both the commit and the tag to the remote repository.

commit_and_tag(version = "1.0.0", message = paste("Release version", version))

Arguments

version

A string specifying the version number for the tag. Default is "1.0.0".

message

A string specifying the commit message. Default is constructed as "Release version " followed by the version number.

Value

This function returns a message indicating whether the operations were successful or not.

Examples

if (FALSE) { # \dontrun{
  commit_and_tag("1.0.2")
} # }