diff --git a/magit-key-mode.el b/magit-key-mode.el index 727d6f75..dda4e4cd 100644 --- a/magit-key-mode.el +++ b/magit-key-mode.el @@ -56,7 +56,8 @@ (pushing (man-page "git-push") (actions - ("p" "Push" magit-push)) + ("p" "Push" magit-push) + ("t" "Push tags" magit-push-tags)) (switches ("-f" "Force" "--force") ("-d" "Dry run" "-n"))) diff --git a/magit.el b/magit.el index fbb1a00a..d0f98a1d 100644 --- a/magit.el +++ b/magit.el @@ -3184,6 +3184,11 @@ typing and automatically refreshes the status buffer." args) nil nil nil t)))) +(magit-define-command push-tags () + "Push tags." + (interactive) + (magit-run-git-async "push" "--tags")) + (magit-define-command push () (interactive) (let* ((branch (or (magit-get-current-branch)