Skip to content

Instantly share code, notes, and snippets.

@monkpit
Last active July 28, 2021 15:18
Show Gist options
  • Save monkpit/fd4902e4141f9a102bb51cf50202d5fd to your computer and use it in GitHub Desktop.
Save monkpit/fd4902e4141f9a102bb51cf50202d5fd to your computer and use it in GitHub Desktop.
Git - Add message to existing tag and update remote
# make sure the tag is updated from remote on local
git fetch
# retag with a message
git tag <tag name> <tag name>^{} -f -m "<new message>"
# might need to add -f to force-push
git push <tag name> <remote>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment