Tag task | Git commands |
---|---|
Create an annotated tag | git tag -a <tag_name> -m '<tag_message>' |
Create a lightweight tag | git tag <tag_name> |
Push all your tags (a regular push won't push a tag) | git push origin --tags |
Push a single tag | git push origin : <tag_name> |
List the tags in a repository | git tag |
Remove a tag from a repository | git tag -d <tag_name> git push origin :refs/tags/<tag_name> |
TIP: 로컬 작업 공간에서 태그를 생성했다면 브랜치처럼 원격 저장소에 push 를 해줘야 한다.
TIP: 빗벗킷 사이트 내에서는 태그를 지울 수 없다.
https://support.atlassian.com/bitbucket-cloud/docs/repository-tags/#Repositorytags-git_tags