Loading

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. High Availability on a Shoestring -- Postgresql 9.0 Streaming Replication
  4. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  5. High Availability on a Shoestring -- Database Replication and Failover Alternatives
You should follow me on Twitter: @patrickxb