git tags

Some notes on how to use tags in git:

You should always use the -a switch (or sign it). Explanation here.

To tag and the push to remote:

git tag -a v1.0.0 -m "version 1.0!!!"
git push --tags

Then, in the future, to get the code at the tag point and do stuff with it:

git checkout -b fromtag1.0 v1.0.0
<do some stuff>
git commit ...

And then back in the master, you can merge that branch back in:

git checkout master
git merge fromtag1.0
git push

That’s enough for now…

You should follow me on Twitter: @patrickxb