376

I saw this comment in git many times. What does it mean actually?

4 Answers 4

421

It means to increment the version number to a new, unique value.

8
  • 11
    Does it have any special context in which it can be used? Does it have to be the source version, or can it be a dependency version? Can it include actually updating some component to a newer version, or is it about only changing a version number in a config file for example? In other words, are there any technical details about how this term can be used?
    – Alexey
    May 13, 2014 at 9:01
  • 6
    Updating components or dependencies is usually annotated as "update to latest/newer" or "build against latest/newer". Other than that it's just housekeeping. May 13, 2014 at 13:51
  • 7
    does 2.2.1 --> 2.2.2 count as a 'bump'?
    – OlehZiniak
    Apr 12, 2017 at 8:07
  • 11
    @OlehZiniak: Assuming 2.2.2 hasn't been used as a version number in the project yet, sure. Apr 12, 2017 at 12:22
  • 3
    yes @EJMak. after testing everything this should be the last commit made in a release. after that you can make a tag (git-scm.com/book/en/v2/Git-Basics-Tagging) and or put your changes into a release branch (nvie.com/posts/a-successful-git-branching-model)
    – denns
    Dec 11, 2020 at 13:05
87

from: A successful Git branching model:

$ git checkout -b release-1.2 develop
Switched to a new branch "release-1.2"
$ ./bump-version.sh 1.2
Files modified successfully, version bumped to 1.2.
$ git commit -a -m "Bumped version number to 1.2"
[release-1.2 74d9424] Bumped version number to 1.2
1 files changed, 1 insertions(+), 1 deletions(-)

After creating a new branch and switching to it, we bump the version number. Here, bump-version.sh is a fictional shell script that changes some files in the working copy to reflect the new version. (This can of course be a manual change—the point being that some files change.) Then, the bumped version number is committed.

8
  • 44
    This article describes a fantastic way to work with git, by the way. Very organized and streamlined. I recommend to everyone.
    – pilau
    Feb 3, 2013 at 9:02
  • 3
    Where can I have some demo bump_version script ?
    – voila
    Dec 13, 2013 at 10:55
  • 5
    bumpversion or grunt-bump or git-version-bump or else. Depending on your language preferences.
    – mab
    Jun 16, 2015 at 15:03
  • 1
    Here is the release.sh shell script on how I automatically bump Git tag versions
    – pepe
    Jul 16, 2017 at 16:15
  • 3
    Who came to this question because he found "Bump Version" while reading that article, than found out that the answer was down there :D Nov 21, 2019 at 9:52
30

Boost, pump up, bring up, ⸻the version.


The etymology for you.

https://www.dictionary.com/e/slang/bump

Likely emerging in the mid to late 1990s with the rise of online message boards, bump is popularly said to be a backronym for the phrase “bring up my post.” The term, however, may have also simply originated as an extension of the word bump (i.e., give something a bump, or boost.).

19

It means incrementing the current version number by 1.

4
  • 15
    But hopefully you imply doing so in a way that conforms to semver!
    – binki
    Mar 25, 2016 at 5:36
  • 7
    Semver is mostly for libs and APIs. It doesn't make sense everywhere.
    – Marc.2377
    Nov 20, 2019 at 1:03
  • 2
    Why not say "update/increment version" instead if that's what it means? It seems like jargon designed to exclude those not in the clique
    – danio
    May 2 at 11:12
  • @danio Isn´t this the case for all wordings? Your string doesn´t clearly separates between updating dependencies versions and version of the app/lib/software itself
    – trueleader
    Sep 19 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.