Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
   |
   +--dir2
   |
   +==dir2_frozen
   |
   + -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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.