On a test Git repository, git log yields:
commit e1f972f22f9906ad62007b4e372d8dc06bc47656
Author: davidandreoletti
Date: Sun Mar 18 11:23:09 2012 +0800
Added 0
commit 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5
Author: davidandreoletti
Date: Sun Mar 18 10:46:44 2012 +0800
first commit
and git tag 0.0.2 is a lightweight tag pointing to commit 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5. All commits have been pushed to a remote repository (tags included).
In this context, how do I make an existing Git “lightweight tag” point to another commit? I.e. I want tag “0.0.2” to point to commit e1f972f22f9906ad62007b4e372d8dc06bc47656 instead of 81a07eeffc58b054d4c083a0d7c1d4aa0b0440d5
Just dump the old tag and create a new one
Assuming you have a remote repository that you work with, you’ll also need to: