githubversion-controlversionrelease

Publish a release for an older version of the repo


I just noticed a cool feature of GitHub, the releases (github.com/user/repo/releases). I'd like to mark three different releases of a language I've written.

However, I can't seem to find a way to mark a release to be published with a commit older than five days. How can I do that?


Solution

  • For creating a GitHub :release, you need to first have pushed tags.

    So in your local repository, create annotated tags referencing any commit you want (however old they might be), and push them: git push --tags.

    Then you can associate binaries to those tags into a GitHub release.