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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:53:13+00:00 2026-06-09T05:53:13+00:00

I come from the SVN world so I might not get all the slight

  • 0

I come from the SVN world so I might not get all the slight concept differences in GIT.

I have a origin/master branch. I have been tagging the master for a while. Then something that happened in production. A nasty bug that we need to fix.

So, I diligently switched (checkout) to a tag (let’s call it prod-1.0). Then I created a branch. I modified my code, commited in origin/prod-1.0-hotfix. I then proceeded to push that branch to my remote.

Now a new bug was found in prod. I thought I could just checkout the branch ‘prod-1.0-hotfix’ but it turns out, it’s not the code from ‘prod-1.0-hotfix’ but the code that was in origin/master at the time I pushed the branch to remote.

Can someone shed a light?

  • 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-09T05:53:14+00:00Added an answer on June 9, 2026 at 5:53 am

    Branching off a tag will use the branch the tag is currently on.
    https://stackoverflow.com/a/5582368/1354978

    https://stackoverflow.com/a/792027/1354978
    This comment on that post says it all.

    Yep. git is different to subversion in this respect. A svn tag
    basically copies the files to a new folder, so you can svn checkout a
    specific bunch of files, whereas git tags are simply pointers to
    specific revisions. – dbr Apr 27 ’09 at 2:17

    I think what you should do is…
    Branch off master to prod-1.0-hotfix

    git reset -—hard  prod-1.0 bad_tag_tag_name
    git push origin prod-1.0-hotfix 
    

    That would create a remote branch with the HEAD @ prod-1.0-hotfix

    I love this site gitready.com
    http://gitready.com/advanced/2009/02/16/convert-git-svn-tag-branches-to-real-tags.html

    Thnx and +1 to Erik Petersen, and dbr for help on that one.

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

Sidebar

Related Questions

I come from an SVN background so I'm not sure what the typical git
I come from SVN and I am not understanding how the whole Git thing
I come from the Java world, so to me it's all object.foo() , but
I come from the iPhone development world but have never developed desktop applications. Now
I am new to GIT (from SVN). When I make a merge, all the
I come from SVN and decided to use GIT now for a project of
I’ve come to Git from SVN. Formerly in order to update some production site
My repo is SVN, and I do all development with git. We have a
I'm quite new to Git: I come from SVN and there I found really
I come from the asp.net world where we'd use an objectdatasource, hooked up to

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.