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

  • SEARCH
  • Home
  • 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 8890679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:33:26+00:00 2026-06-14T22:33:26+00:00

I just switched from Subversion to Git. Subversion’s centralized architecture gives it a meaningful

  • 0

I just switched from Subversion to Git. Subversion’s centralized architecture gives it a meaningful revision number that I used to build into the change-log for our web-based application to make it easy to log in and see which version is running on any given server. Git doesn’t have a friendly build number. Rather I’ve seen it suggested that you parse something from the output of git status or git tags.

I’m not convinced we will always use customer-friendly names for our branches (sometimes we name them for an individual customer who doesn’t want the fact that they use our system publicized). So I’m thinking I could have the build generate a datestamp/timestamp tag like 2012-11-21_08-40-23 and use that the way I used to use the Subversion revision number. The build would only generate this tag and add it to Git when we build a war file for deployment, so any deploy to any server would generate a tag.

Currently we deploy to test every few days, integration a few times a month (in bursts), and production every couple months.

  • 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-14T22:33:27+00:00Added an answer on June 14, 2026 at 10:33 pm

    The point of the revision number in SVN was to be able to associate the released code with a specific revision in source control. I’m thinking now that tagging is unnecessary and that the answer to my question is actually to just use the commit hash as generated by:

    git log -1 --format=%H
    

    I’ve never answered my own question before. Thank you everyone for your answers. I gave each of you a +1 for trying. I apologize if my question was worded poorly (in retrospect – it was). If someone wants to explain to me why this is wrong and how to fix it (or do it better), I’ll gladly accept their answer as the correct one.

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

Sidebar

Related Questions

I just switched from Eclipse to IntelliJ and noticed that when I use Reformat
So I just switched from some network solutions hosting running some php files that
I just switched from Textmate 2 to Sublime Text 2. I figured that typing
We just switched from ojdbc14 to ojdbc6, and noticed that when we insert a
I just switched from C++ to Java. I'm trying to write a program that
I just recently switched from EF5 to NHibernate due to a few features that
I just switched from Eclipse to IntelliJ. IntelliJ lacks one feature from Eclipse -
I just switched from storing my images uploaded via Carrierwave locally to using Amazon
I've just switched from radrails to netbeans. So far, so good. But I have
I have just switched from svn to mercurial and have read some tutorials about

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.