How to change a release on Github point to the latest commit?

I recently released a new version of my project on Github by clicking the release button, on the right-hand side of the page. However, I found something error in my code, so, I just fixed and committed it.

Now, I would like to change my latest release in order to include my latest commit. I tried to remove the release and recreate it once again using the same tag name, however, it still points to the previous commit. I have been googling but still no luck. Any help would be appreciated.

  • Can't add the “!” symbol in my git commit message
  • Git - Branch with the same name but different case doesn't show up
  • Correct procedure to use pending branch changes in a new branch
  • Git diff after back and forth merging?
  • SSH KEY Already Exists Bitbucket
  • When I am using Git, should I rebase before I merge?
  • Git and Mercurial - Compare and Contrast
  • Easier way to collaborate with eclipse and GIT?
  • In git what does “Commits by domain” mean?
  • Restart conflict resolution in a single file
  • git branch flag for --no-merged and not --contains?
  • SSH agent forwarding configured and (seems to be) working but github still asks for user & password
  • One Solution collect form web for “How to change a release on Github point to the latest commit?”

    You would need to update/move the tag locally first, and force push it (as in here):

    # assuming you are in the branch referencing currently the right new commit:
    git tag -f -a <tagname>
    
    # push your new commit:
    git push 
    
    # force push your moved tag:
    git push -f --tags
    

    Then you can go on GitHub and associate new binaries with the release for that tag (which should point to the right commit).

    Git Baby is a git and github fan, let's start git clone.