What are the methods of tagging commits for a release on GitHub?
What are the methods of tagging commits for a release on GitHub?
What are the ways to Tag commits on GitHub - the only ways I've seen is to create a Release, which targets a branch and tags all the commits on that branch. Or via the terminal which you can tag commits individually - git tag -a v1.2 9fceb02
git tag -a v1.2 9fceb02
Is there an easier way to bulk tag a lot of commits on a particular branch (e.g. master
) but not all of the commits?
master
1 Answer
1
Is there an easier way to bulk tag a lot of commits on a particular branch (e.g. master) but not all of the commits?
Well, no, considering a tag only reference one commit, so your "bulk tag" operation would need to somehow increment its naming convention.
Since a release (IE. one release) only needs one tag, the simple way is a
git tag -m "my release" v1.0.0 <acommitID>
git push --tags
That is enough to create a tag on top of which you can create one release.
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.