Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2021-01-14 00:47:29
Size: 474
Editor: PieterSmit
Comment:
Revision 3 as of 2022-05-10 06:17:38
Size: 705
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
git --tag -d "v1.0.0" git tag -d "v1.0.0"
git push --delete origin "v1.0.0"

git pull
git tag
Line 20: Line 24:



\
 * 2nd delete option {{{
$ git tag -d v0.1.2
Deleted tag 'v0.1.2' (was f514725)
$ git push origin :refs/tags/v0.1.2
To bitbucket.org:ABCD/FGHI.git
 - [deleted] v0.1.2
}}}

Git/Tags

Tags can be added to a specific commit in a git repo.

Add tag

  • Either through web gui of git server e.g. bitbucket or from commandline.
    • add tagg

      git tag -a "v1.0.0"

Push tag to origin/upstream repo

  • After adding tag to local git repo

    git push --tags

Delete a tag

  • With bitbucket (2021) can only do it from CLI and push to repo.
  • Delete local tag v1.0.0

    git tag -d "v1.0.0"
    git push --delete origin "v1.0.0"
    
    git pull
    git tag
  • 2nd delete option

    $ git tag -d v0.1.2
    Deleted tag 'v0.1.2' (was f514725)
    $ git push origin :refs/tags/v0.1.2
    To bitbucket.org:ABCD/FGHI.git
     - [deleted]         v0.1.2

Git/Tags (last edited 2022-05-10 06:17:38 by PieterSmit)