Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9101747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:12:37+00:00 2026-06-17T01:12:37+00:00

I have a project that I track with Git. For the most part I

  • 0

I have a project that I track with Git. For the most part I have had no problem with the Git paradigm, but there is one issue that I haven’t quite figured out. Currently, my master branch points to code that will be released at some point. Topic branches are merged into master when they’re ready, and into develop to test that they work with other dev code. (By the way, I tried Git Flow and didn’t like it.)

The problem with this scheme is that builds from master or develop appear to have the same version as the last stable release, because I incremented the version right before tagging a release. I don’t want this–I want unstable code to refer to itself as such! My question: What are popular and/or usable conventions for committing version bumps? Also, what branching and tagging models could be used to avoid this type of situation? I’d love something simple, because my project isn’t large enough to warrant a big Linux kernel-style model :).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:12:39+00:00Added an answer on June 17, 2026 at 1:12 am

    You should take a look at how it is done in Linux kernel by scripts/setlocalversion.

    Basically, this script tries to guess version from closest tagged commit. If current commit is tagged, this tag is taken as clean version.
    If not, it appends current commit short sha to tag to become a version.
    If current tree has any uncommitted changes, it may append string “dirty” on top of that.

    Note that this is somewhat simplified explanation (in reality it also looks for version numbers in main Makefile).

    Some other tools also adopted similar versioning approach, notably u-boot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that compiles and runs on my system but when I
We have several branches of one project that share about half of the code
I have been using git on my windows box to track a project I
We have a large project that encompass several sub-projects with their separate GIT repositories,
So I have a project that is a git repo which contains another git
I have a project that may be started on local machine with ./manage.py runserver
I have a project that I have divided quite aggressively into different layers. I
I have a project that using some third-party libraries. My questions is how to
I have a project that is displaying 16px text font at 0.5ems links on
I have a project that's been changed and modified in bits and pieces over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.