Wednesday, May 19, 2021

GIT Basics - Updating tags

git status -> clean

git log --online --graph --decorate -- all -> several commits associated with the tags


Scenario 1: we need to update a tag "v-0.8-alpha" with new commit id

you can delete and create a tag

else update/ force a tag

git tag -a v-0.8-alpha -f bd4523

-------------------------------------

Updated tag 'v-0.8-alpha' (was 96a2324)


you can verify with history| log command that tag has been moved to correct command

git log --online --graph --decorate -- all

No comments:

Post a Comment