From 3e3f3e411e88a1cbdf1008db75ee0c828c86403d Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Fri, 18 Dec 2015 04:04:11 +0200 Subject: [PATCH] git-tag: add page; git-push: add example of pushing tags --- pages/common/git-push.md | 4 ++++ pages/common/git-tag.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pages/common/git-tag.md diff --git a/pages/common/git-push.md b/pages/common/git-push.md index 97cbe40f5f..1f0d112b16 100644 --- a/pages/common/git-push.md +++ b/pages/common/git-push.md @@ -17,3 +17,7 @@ - Remove remote branches which don't exist locally `git push --prune {{REMOTE-NAME}}` + +- Publish tags + +`git push --tags` diff --git a/pages/common/git-tag.md b/pages/common/git-tag.md new file mode 100644 index 0000000000..8580f0bbed --- /dev/null +++ b/pages/common/git-tag.md @@ -0,0 +1,20 @@ +# git tag + +> Create, list, delete or verify tags. +> Tag is reference to specific commit. + +- List all tags + +`git tag` + +- Create a tag with the given name pointing to the current commit + +`git tag {{tag_name}}` + +- Create a tag with the given message + +`git tag {{tag_name}} -m {{tag_message}}` + +- Delete the tag with the given name + +`git tag -d {{tag_name}}`