1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:02:08 +02:00

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

This commit is contained in:
Igor Shubovych 2015-12-18 04:04:11 +02:00
parent 42155ea6dd
commit 3e3f3e411e
2 changed files with 24 additions and 0 deletions

View file

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

20
pages/common/git-tag.md Normal file
View file

@ -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}}`