If you create a new release in GitHub, you will either create a new tag (which will point to the most recent commit on main
) or choose an existing tag (that might point to an older commit).
If you want to create releases from old commits (e.g. because you forgot to create a realease or didn't work with releases back then), there is a problem with this: when creating a tag for a specific commit in the past, GitHub only lets you pick from the most recent commits, so the commit you want to tag will not show up in the list.
Luckily, you can tag older commits locally [1]:
- Find the commit on GitHub. If it is from a Pull Request, you can look into the closed Pull Requests. Within the PR you'll find a link to the commit.
- Copy the commit hash from yo