Do Git tags only apply to the current branch?

CharlesB’s answer and helmbert’s answer are both helpful, but it took me a while to understand them. Here’s another way of putting it: A tag is a pointer to a commit, and commits exist independently of branches. It is important to understand that tags have no direct relationship with branches – they only ever identify … Read more

Switch to another Git tag

Clone the repository as normal: git clone git://github.com/rspec/rspec-tmbundle.git RSpec.tmbundle Then checkout the tag you want like so: git checkout tags/1.1.4 This will checkout out the tag in a ‘detached HEAD’ state. In this state, “you can look around, make experimental changes and commit them, and [discard those commits] without impacting any branches by performing another … Read more

Show which git tag you are on?

Edit Jakub NarÄ™bski has more git-fu. The following much simpler command works perfectly: git describe –tags (Or without the –tags if you have checked out an annotated tag. My tag is lightweight, so I need the –tags.) Original answer git describe –exact-match –tags $(git log -n1 –pretty=’%h’) Someone with more git-fu may have a more … Read more

Is there a standard naming convention for git tags? [closed]

Version 1.0.0 of Semantic Versioning, by Tom Preston-Werner of GitHub fame, had a sub-specification addressing this: Tagging Specification (SemVerTag) This sub-specification SHOULD be used if you use a version control system (Git, Mercurial, SVN, etc) to store your code. Using this system allows automated tools to inspect your package and determine SemVer compliance and released … Read more

Does “git fetch –tags” include “git fetch”?

Note: starting with git 1.9/2.0 (Q1 2014), git fetch –tags fetches tags in addition to what are fetched by the same command line without the option. To fetch only tags: git fetch <remote> ‘refs/tags/*:refs/tags/*’ In details: See commit c5a84e9 by Michael Haggerty (mhagger): Previously, fetch’s “–tags” option was considered equivalent to specifying the refspec refs/tags/*:refs/tags/* … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)