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…


Related Posts

  1. Create new git repository with gitosis
  2. git fatal empty ident not allowed
  3. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  4. Rails Fragment Caching With Multiple Accounts
  5. Apache 2 Virtual Host Redirect
You should follow me on Twitter: @patrickxb