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 451579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:58:58+00:00 2026-05-12T21:58:58+00:00

I was wondering if the strategy I’m using for tagging and hotfixing tags (which

  • 0

I was wondering if the strategy I’m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate.

For tagging I just tag a commit of the master trunk.

If it happens I have to hotfix the tag, I’m checking out the tag (e.g. 1.0), fix the issue, commit it and re-tag it (e.g. 1.0.1).
Now, if I have to do another fix on the tag, I repeat the procedure, using as first checkout the tag of the first hotfix (e.g. 1.0.1).

Now, I noted two things:
1. when I checkout the 1.0.1, I get a warning saying I’m not in branch – I assume that it’s ok, but is it appropriate as strategy?
2. when I try to deploy the 1.0.2, I receive an error from capistrano (tool used for deploying rails apps) during the code update from the remote repository, saying that it can’t find the object [commit of 1.0.2]. I can correct this problem checking out the master and merging 1.0.2.

Of course, I’m always pushing the tags to the repository.

Is there anything wrong/inefficient/inappropriate, or this is an appropriates strategy?
I’m completely new to git and I couldn’t find around a great deal of information about the deployment strategies generally used.

  • 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-05-12T21:58:58+00:00Added an answer on May 12, 2026 at 9:58 pm

    From the tag 1.0, you need to make a branch

     $ git checkout -b hotfix1.0
    

    on which you can go every time you need to make a fix, and on which you can make a tag (1.0.1, 1.0.2, …) every time you need to deploy.

    Working on a detached HEAd is not optimal, because that commit can be pruned later on. If you are on a detached HEAD and have made some modifications, you can always merged them with a given branch:

     $ git checkout -m hotfix1.0
    

    I would not recommend making a branch for each hotfix you need to make for the 1.0 version of your program: one branch should be enough for that purpose, with tags along the way to mark significant modifications worthy to be published.

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

Sidebar

Related Questions

I was wondering. Are there languages that use only pass-by-reference as their eval strategy?
I was wondering what would be the best strategy to implement a badges system
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality.
I am wondering if anyone has a better strategy for this scenario. I am
I have a project I manage out of a git repository. We use the
I am wondering what is produced by the compiler when using non-virtual derivation: template<
I was wondering about our database backup strategy: Right now our sysadmins backup our
I'm wondering if it is possible to build a form using an entity to
I'm wondering what the best branching strategy is for this scenario. My company is
I'm wondering about the advantages of using (django) South during heavy initial development of

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.