Tags
allow you to reference a specific commit in the repository. Using, for example, the version tag, you can easily get a commit in your project that matches, for example, version 1.5. It is preferable to remember the hash of a particular commit or scroll / anti-aliasing through the log information to find out which commit represents version 1.5.
This can be useful for many reasons, but consider only one thing: you have two clients that run different versions of your software, client A in version 1.5
and client B using version 2.0
. Client A reports an error and you cannot just upgrade your installation and should instead address the error in version 1.5
code. The tag version 1.5
allows you to easily return to the code in which they work and work with the patch.
source share