From 674f47556b5a1556000fcc5de89115c4dc8aece7 Mon Sep 17 00:00:00 2001 From: Ville Saalo Date: Thu, 20 Jun 2024 20:18:30 +0300 Subject: [PATCH] git-tag: add example on how to push a tag (#13079) Co-authored-by: spageektti --- pages/common/git-tag.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/git-tag.md b/pages/common/git-tag.md index 74397937f2..eff87c349c 100644 --- a/pages/common/git-tag.md +++ b/pages/common/git-tag.md @@ -24,10 +24,14 @@ `git tag -d {{tag_name}}` -- Get updated tags from upstream: +- Get updated tags from remote: `git fetch --tags` +- Push a tag to remote: + +`git push origin tag {{tag_name}}` + - List all tags whose ancestors include a given commit: `git tag --contains {{commit}}`