What rules does software version numbering follow?

This question already has an answer here:

  • Code version change “rules”

    3 answers

  • Jenkins, parameterized builds and the ability to select the required subprojects and child nodes based on variables
  • Does git have anything like `svn propset svn:keywords` or pre-/post-commit hooks?
  • git: why can I checkout to the commit I deleted?
  • git merge after file renamed
  • Migrating from SVN to Git when using Visual Studio - adjusting the workflow
  • Strange error in Git-TF
  • Cleaning up after a conflicted git merge?
  • git and eclipse workbench
  • Git - committing changes in master to a new branch
  • Create a git bare repo from two existing repository
  • Why doesn't svn import work?
  • In IntelliJ Idea, can I manage code / file templates in Version Control?
  • 3 Solutions collect form web for “What rules does software version numbering follow?”

    The usual method I have seen is X.Y.Z, which generally corresponds to major.minor.patch:

    • Major version numbers change whenever there is some significant change being introduced. For example, a large or potentially backward-incompatible change to a software package.
    • Minor version numbers change when a new, minor feature is introduced or when a set of smaller features is rolled out.
    • Patch numbers change when a new build of the software is released to customers. This is normally for small bug-fixes or the like.

    Other variations use build numbers as an additional identifier. So you may have a large number for X.Y.Z.build if you have many revisions that are tested between releases. I use a couple of packages that are identified by year/month or year/release. Thus, a release in the month of September of 2010 might be 2010.9 or 2010.3 for the 3rd release of this year.

    There are many variants to versioning. It all boils down to personal preference.

    For the “1.3v1.1”, that may be two different internal products, something that would be a shared library / codebase that is rev’d differently from the main product; that may indicate version 1.3 for the main product, and version 1.1 of the internal library / package.

    You might find the Semantic Versioning Specification useful.

    Wikipedia has a pretty extensive answer that might be a good place to start

    Git Baby is a git and github fan, let's start git clone.