Skip to content

Instantly share code, notes, and snippets.

@OsirisTerje
Created November 11, 2025 20:37
Show Gist options
  • Select an option

  • Save OsirisTerje/3870ef74b85cfc565864c4bd40937c83 to your computer and use it in GitHub Desktop.

Select an option

Save OsirisTerje/3870ef74b85cfc565864c4bd40937c83 to your computer and use it in GitHub Desktop.
Retag a tag: Move it forward
git tag -d v1
git push origin :refs/tags/v1
git tag v1
git push origin v1
@OsirisTerje
Copy link
Author

Sometimes you need to just move a tag forward, e.g. last-deploy tag.

@OsirisTerje
Copy link
Author

Very useful when working with github action (those you reuse, they need a tag to indicate its version, and then you have to move it forward when developing them.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment