Sfoglia il codice sorgente

git-tag: add page; git-push: add example of pushing tags

Igor Shubovych 9 anni fa
parent
commit
3e3f3e411e
2 ha cambiato i file con 24 aggiunte e 0 eliminazioni
  1. 4 0
      pages/common/git-push.md
  2. 20 0
      pages/common/git-tag.md

+ 4 - 0
pages/common/git-push.md

@@ -17,3 +17,7 @@
 - Remove remote branches which don't exist locally
 - Remove remote branches which don't exist locally
 
 
 `git push --prune {{REMOTE-NAME}}`
 `git push --prune {{REMOTE-NAME}}`
+
+- Publish tags
+
+`git push --tags`

+ 20 - 0
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}}`