You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleted tag and recreated on different commit is not reflected in client #18456
We rerolled a patch which involved deleting a release and the associated tag, and then creating a new release with the same tag on a later commit. This all worked fined in GitHub web, but the GitHub client did not move the tag to the new commit after fetch origin, which is confusing.
Release version
3.3.13
Operating system
Windos 11 Pro
Steps to reproduce the behavior
Web: Create tag and release on branch, say master.
Client: Fetch origin. Tag is shown on last commit on master.
Client: Make new commit on master and push.
Web: Delete tag and release.
Web: Recreate tag and make new release from the new commit.
Client Fetch origin. Tag is still shown on old commit.
@mrkmcnamee thanks for the report. Git won't update the tag locally -- see this comment for some more information about this. I'm going to close this out, but let me know if you have any further questions.
Hi @steveward!
OK, so Git doesn't update the tag locally by default. But it is possible to do? StackOverflow suggests: git fetch origin --tags --force or a variation of that.
So, do I have to manually run this command or is it possible to do this in the GitHub client?
Activity
steveward commentedon Apr 17, 2024
@mrkmcnamee thanks for the report. Git won't update the tag locally -- see this comment for some more information about this. I'm going to close this out, but let me know if you have any further questions.
mrkmcnamee commentedon Apr 17, 2024
Hi @steveward!
OK, so Git doesn't update the tag locally by default. But it is possible to do? StackOverflow suggests:
git fetch origin --tags --forceor a variation of that.So, do I have to manually run this command or is it possible to do this in the GitHub client?
steveward commentedon Apr 18, 2024
You'll have to manually run that command, there isn't a way to do this in GitHub Desktop as of yet.
Update tags that moved on the remote when fetching