Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

we have a remote git repository, and a development branch.

i'd like to "fork" a particualr directory for (a-la code freeze).

for example,

+ -dir1
   + -dir2
   + -dir3

i need to create a copy dir2, (e.g. as "dir2_frozen") so it contains new folder with files from a specific date.

the "dir2_frozen" dir will not commit any changes.

+ -dir1
   + -dir3

i'd rather not use branches in the original directory, because i need both versions active and running.

i'd rather not fork the whole repository (it's HUGE)

how can i do that?

share|improve this question
as you may see, i'm new to git – Berry Tsakala Jul 19 '12 at 18:36
Creating a branch does not deactivate or stop anything. Did you try to create one? – Marco Jul 19 '12 at 18:41
i created a new branch. how can the programs be run and libraries be used from branch2 (current) while i'm actively running and importing libraries on branch2_frozen ? is it some kind of a magic? – Berry Tsakala Jul 19 '12 at 18:58
Are you developing on the production system? – Marco Jul 19 '12 at 19:15

If you're going into squashing bugs mode for release, then creating a branch is exactly what you want to do.

If you want to refer to an exact point in time in your code base, create a tag. You will do this when you actually release, for instance.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .