Posted by & filed under Web Development.

Since so much software is tracked using a Git repository on Github using public repositories, this can make for a very useful software update mechanism.

Since so much software is tracked using a Git repository on Github using public repositories, this can make for a very useful software update mechanism.

The first thing you’ll need to do is find your project on Github, and clone the entire thing to a local directory, e.g.:

git clone git://github.com/phpmyadmin/phpmyadmin.git phpmyadmin

Then, since you probably don’t want to be using the very latest development version, find out what tags are available:

git tag -l

Check out the version you want to its own branch:

git checkout -b versionnum [tag_name]

This will checkout that version as its own branch and make this branch active, so that the code that resides in this directory corresponds to this tag. You can then take this directory, copy it, export it, rsync it, whatever to wherever you need this.