Editing
Marking Releases With Git
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:Git]] [[Category:Web Development]] == Overview == Using the `git tag` command to mark releases. <ref>[https://git-scm.com/book/en/v2/Git-Basics-Tagging Git Basics - Tagging], Git documentation</ref> == Listing tags == * `git tag` lists existing tags * `git tag -l v1.8.*` searches existing tags using a pattern == Annotated tags == * "Lightweight tags" are pointers to specific commits and don't do much else. * "Annotated tags" are required to mark a version in the repo, and on GitHub. <syntaxhighlight lang="bash"> $ git tag -a v1.4 -m "my version 1.4" $ git tag v0.1 v1.3 v1.4 </syntaxhighlight> * `-a` indicates an annotated tag * `-m` is the message to store with the tag `git show v1.4` will display all the data associated with the tag Tags can be added after the fact using the checksum of a commit, e.g. `git tag -a v1.2 9fceb02` == Pushing tags to GitHub == Tags are not automatically sent along when pushing a branch. For example they will not show up on GitHub until they are manually pushed, e.g. `git push origin v1.4`. == References == <references />
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information