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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:17:10+00:00 2026-05-24T12:17:10+00:00

I have a git repository. I want to create a branch for release snapshots.

  • 0

I have a git repository. I want to create a branch for release snapshots. Would work like this:

  1. Currently working in my usual branch, named “foo”.
  2. Create a branch (one time), named “release”.
  3. Work for a bit on foo, committing changes etc.
  4. Ready to cut a release of the app, push all changes from foo to release.
  5. Repeat steps 3 & 4 from now on.

The purpose of “release” is to hold the state of the code for the last public release. If I discovered a bug a week after release, I could pull out that snap shot, patch and re-release.

Is there some other mechanism of doing this? I’m coming from subversion and wincvs, so any advice would be great.

Thanks

  • 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-24T12:17:11+00:00Added an answer on May 24, 2026 at 12:17 pm

    Another way of doing this is through tagging. Work in any branch you like and when you are ready to release just tag the current head.

    git tag MyProject_1_0
    

    This can then be referenced at any later point to make changes from that point

    git checkout MyProject_1_0
    

    Note: When doing a push to your remote tags will not be pushed by default. You need to use the –tags option to push the newly created tag so other users can download it later.

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

Sidebar

Related Questions

I am new to git, and have a subversion repository that I want to
Say I have a git repository and I've been working on master, can I
I have a project hosted on GitHub and I would like to work locally
I have a repository whose layout is like this: trunk/ projectA projectB branches/ projectA-1.0
I have a project directory like /projects/myProject/src/... and my git repository is on /projects/myProject/src
I have a Git repository that I want to remove all previous commits from.
I have a git repository with remote foo. foo is a web app, is
I have a git repository which tracks an svn repository. I cloned it using
I have a git repository with multiple branches. How can I know which branches
I have a Git repository I store random things in. Mostly random scripts, text

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.