Step1: We have master, modify some files, commit, pull, tag, push –tags. Everything works.
Then we go to another computer and we do: git fetch, git tag -l shows the tagnames, git checkout -b tagname … however the modified files from step 1 are not there… why?
The problem is the
-boption.This means that you’re creating a new branch called
tagname. Since you didn’t specify a start point, Git assumes you want it pointed at the currentHEAD.To simply check out a tag, just drop the
-b:If you want to create a new branch from the tag, give it a name and the correct starting point.