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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:32:22+00:00 2026-05-27T15:32:22+00:00

using git repository, have branches v1.0 through v1.6. like to keep latest of each

  • 0

using git repository, have branches v1.0 through v1.6.

like to keep latest of each version in its own directory:

/dev
  /.git
/good-stuff
  /v1.0
  ...
  /v1.6

what is the best way to do this?

is there any way to recreate the snapshot when a branch is committed?

linux server. thinking of a shell script invoking git checkout followed by rsync to move the files. but thinking there had to be a better way.

NOTE: used “tag” when should have said “branch” – mea culpa

  • 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-27T15:32:23+00:00Added an answer on May 27, 2026 at 3:32 pm

    Tags really aren’t supposed to be updated. They’re supposed to be fixed points in history. If you’re making constant changes, you should use a branch for that. If you do this, there’s no need to keep folders outside of git (kinda defeats the purpose of a vcs if you think about it).

    If you absolutely have to have those folders though, you could probably set up a post commit hook that does that. Since you haven’t listed anything about your platform, I can’t go into any further details.

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

Sidebar

Related Questions

I have four branches in my git repository, which is managed using GitHub: Production
In my repository, I have created tags using the following commands. git tag v1.0.0
I'm using git-svn to work with an SVN repository. My working copies have been
I have a repository whose layout is like this: trunk/ projectA projectB branches/ projectA-1.0
I have a svn repository that I migrated to git using the tool svn2git.
I have checked out a svn repository using git svn. Now I need to
I have a git repository that I am using and I've screwed up. I
I have a remote tracking branch tracked locally in my local repository using 'git
I have just created a new Git repository backed by Subversion, using git svn.
I'm using git-svn to work with an svn repository. I have my git master

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.