Skip to content

Commit b9a4f6f

Browse files
committed
Merge pull request #367 from igorshubovych/git-tag
git-tag: add page; git-push: add example of pushing tags
2 parents 42155ea + 3e3f3e4 commit b9a4f6f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

pages/common/git-push.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
- Remove remote branches which don't exist locally
1818

1919
`git push --prune {{REMOTE-NAME}}`
20+
21+
- Publish tags
22+
23+
`git push --tags`

pages/common/git-tag.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# git tag
2+
3+
> Create, list, delete or verify tags.
4+
> Tag is reference to specific commit.
5+
6+
- List all tags
7+
8+
`git tag`
9+
10+
- Create a tag with the given name pointing to the current commit
11+
12+
`git tag {{tag_name}}`
13+
14+
- Create a tag with the given message
15+
16+
`git tag {{tag_name}} -m {{tag_message}}`
17+
18+
- Delete the tag with the given name
19+
20+
`git tag -d {{tag_name}}`

0 commit comments

Comments
 (0)