Questions tagged [versioning]

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

The following are some popular versioning software used:

  1. Git
  2. Subversion (SVN)
  3. Microsoft TFS
2896 questions
107
votes
9 answers

How to perform better document version control on Excel files and SQL schema files

I am in charge of several Excel files and SQL schema files. How should I perform better document version control on these files? I need to know the part modified (different part) in these files and keep all the versions for reference. Currently I am…
Marcus Thornton
  • 5,043
  • 5
  • 41
  • 45
95
votes
7 answers

How do I sync the SVN revision number with my ASP.NET web site?

Stack Overflow has a subversion version number at the bottom: svn revision: 679 I want to use such automatic versioning with my .NET Web Site/Application, Windows Forms, WPD projects/solutions. How do I implement this?
Zack Peterson
  • 53,106
  • 76
  • 203
  • 279
91
votes
22 answers

A regex for version number parsing

I have a version number of the following form: version.release.modification where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing. So…
Andrew Borley
  • 1,364
  • 1
  • 9
  • 13
81
votes
3 answers

Move tag one commit ahead

I have a repository with only one branch (master). I'm the only contributor to my repo. I've recently added a tag, both locally and pushed to GitHub. After making what I though was the last necessary commit, but now I realize I should have made one…
Gabriel
  • 32,750
  • 58
  • 187
  • 337
79
votes
10 answers

Setting the version number for .NET Core projects - CSPROJ - not JSON projects

This question is very similar to Setting the version number for .NET Core projects, but not the same. Using the latest stable version of .NET Core at the time of writing (1.1) and VS2017, .NET Core has switched from JSON based project files to…
Jay
  • 7,855
  • 4
  • 48
  • 64
73
votes
7 answers

Git and the Umlaut problem on Mac OS X

Today I discovered a bug for Git on Mac OS X. For example, I will commit a file with the name überschrift.txt with the German special character Ü at the beginning. From the command git status I get following output. Users-iMac: user$ git status On…
LuckyMalaka
  • 9,651
  • 4
  • 32
  • 56
71
votes
5 answers

Execute Maven plugin goal on parent module, but not on children

We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin to increment a build number and then check it into source control. If I define the plugin in the parent pom.xml it executes for all the child builds as…
Dougnukem
  • 14,091
  • 23
  • 86
  • 129
70
votes
3 answers

How do you use multiple versions of the same R package?

In order to be able to compare two versions of a package, I need to able to choose which version of the package that I load. R's package system is set to by default to overwrite existing packages, so that you always have the latest version. How do…
Richie Cotton
  • 107,354
  • 40
  • 225
  • 343
70
votes
15 answers

How to "unversion" a file in either svn and/or git

It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files). If I commit this file, I will mess up the paths on all the other developer machines - they will be…
Mo.
  • 14,027
  • 13
  • 42
  • 57
70
votes
2 answers

What are the best practices for versioning XML schemas?

I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the schema's version and to have some mechanism to…
Regent
  • 5,332
  • 3
  • 29
  • 57
69
votes
2 answers

Maven versioning best practices

What is the best way to change version of Maven project, to release this version and then return back to *-SNAPSHOT development. Currently I'm doing following: retrieve current version (most likely with SNAPSHOT) from pom.xml increment version (mvn…
shabunc
  • 17,863
  • 15
  • 68
  • 96
64
votes
1 answer

What does M1 mean in a maven repository?

I've been using maven for a while, and I often review repositories before selected what version I want to use. I don't entirely understand what the extensions mean. I know that when I see extensions like -RC1 and -RC2 that means release candidates.…
Fred Haslam
  • 8,443
  • 5
  • 29
  • 30
62
votes
7 answers

Line history viewer - Git

I was wondering if any of you knew of a tool that would allow me to select a line in my code and then view a list view of the history of that line, on a commit by commit basis. Anyone know of such a tool?
David.LPower
  • 763
  • 2
  • 8
  • 12
60
votes
5 answers

Gradle script to autoversion and include the commit hash in Android

I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers. I am confused how auto versioning usually work. Can someone explain the…
Shatazone
  • 2,220
  • 6
  • 27
  • 36
57
votes
4 answers

Database - Data Versioning

I've read a few questions on SO (such as this one) in regards to versioning your data within a database. I liked some of the suggestions that were mentioned. I have for the longest time wanted (needed) to revision many of my tables but never got…
Jeach
  • 7,653
  • 7
  • 43
  • 56