Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I have created a tag in my project, using git tag v2023 However, I forgot to commit a few changes. Now I would like to move this tag to the current point (after having committed the changes I had...
#3: Post edited
How to move a tag in git?
I have created a tag in my project, using```git tag v2023```However, I forgot to commit a few changes.- Now I would like to move this tag to the current point (after having committed the changes I had missed).
From the [docs](https://git-scm.com/docs/git-tag), I know it is possible to delete tags using```git tag -d v2023```After this command I can just create the tag again.- However, this feels a bit clumsy.
Therefore, I was wondering if there is a more elegant way to move git tags around?
- I have created a tag in my project, using `git tag v2023`
- However, I forgot to commit a few changes.
- Now I would like to move this tag to the current point (after having committed the changes I had missed).
- According to the [docs](https://git-scm.com/docs/git-tag), it is possible to delete tags using `git tag -d v2023`
- After this command I can just create the tag again.
- However, this feels a bit clumsy.
- Is there is a more elegant way to move git tags around?
#1: Initial revision
How to move a tag in git?
I have created a tag in my project, using ``` git tag v2023 ``` However, I forgot to commit a few changes. Now I would like to move this tag to the current point (after having committed the changes I had missed). From the [docs](https://git-scm.com/docs/git-tag), I know it is possible to delete tags using ``` git tag -d v2023 ``` After this command I can just create the tag again. However, this feels a bit clumsy. Therefore, I was wondering if there is a more elegant way to move git tags around?