Function: magit-tag-create

magit-tag-create is an interactive and natively compiled function defined in magit-tag.el.

Signature

(magit-tag-create NAME COMMIT &optional ARGS)

Documentation

Create a new tag with the given NAME at COMMIT.

With a prefix argument annotate the tag.

(git tag [--annotate] NAME REV)

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-tag.el
;;;###autoload
(defun magit-tag-create (name commit &optional args)
  "Create a new tag with the given NAME at COMMIT.
With a prefix argument annotate the tag.
\n(git tag [--annotate] NAME REV)"
  (interactive (list (magit-completing-read "Create tag" (magit-list-tags))
                     (magit-read-branch-or-commit "Place tag on")
                     (let ((args (magit-tag-arguments)))
                       (when current-prefix-arg
                         (cl-pushnew "--annotate" args :test #'equal))
                       args)))
  (magit-run-git-with-editor "tag" args name commit))