I saw this comment in git many times. What does it mean actually?
4 Answers
It means to increment the version number to a new, unique value.
-
11Does 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?– AlexeyMay 13, 2014 at 9:01
-
6Updating 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
-
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
-
3yes @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)– dennsDec 11, 2020 at 13:05
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.
-
44This article describes a fantastic way to work with git, by the way. Very organized and streamlined. I recommend to everyone.– pilauFeb 3, 2013 at 9:02
-
3
-
5bumpversion or grunt-bump or git-version-bump or else. Depending on your language preferences.– mabJun 16, 2015 at 15:03
-
1Here is the release.sh shell script on how I automatically bump Git tag versions– pepeJul 16, 2017 at 16:15
-
3Who 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
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.).
It means incrementing the current version number by 1.
-
15
-
7Semver is mostly for libs and APIs. It doesn't make sense everywhere. Nov 20, 2019 at 1:03
-
2Why not say "update/increment version" instead if that's what it means? It seems like jargon designed to exclude those not in the clique– danioMay 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 Sep 19 at 10:54