git-tag: add example on how to push a tag (#13079)
Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
@@ -24,10 +24,14 @@
|
|||||||
|
|
||||||
`git tag -d {{tag_name}}`
|
`git tag -d {{tag_name}}`
|
||||||
|
|
||||||
- Get updated tags from upstream:
|
- Get updated tags from remote:
|
||||||
|
|
||||||
`git fetch --tags`
|
`git fetch --tags`
|
||||||
|
|
||||||
|
- Push a tag to remote:
|
||||||
|
|
||||||
|
`git push origin tag {{tag_name}}`
|
||||||
|
|
||||||
- List all tags whose ancestors include a given commit:
|
- List all tags whose ancestors include a given commit:
|
||||||
|
|
||||||
`git tag --contains {{commit}}`
|
`git tag --contains {{commit}}`
|
||||||
|
Reference in New Issue
Block a user