One technique, which is a bit of a hack, is to first checkout the branch/commit 
that you want to be your start point, 
and then copy the whole directory to a new directory. 
Then delete the .git subdirectory leaving you with a new clean folder that 
isn't yet a git repo at all.
(or you could do a checkout to a work_dir path)
Now you can do the git init and build up your new repo fom there.


The other option is to use `git checkout --orphan` to start a new branch which 
is disconnected from the rest of the commit history, but is still part of the 
same repo. You can even temporarily make it look connected again with a git 
grafts file (see my question http://stackoverflow.com/q/6800692/717355) (rename 
the grafts file to make the apparent link disappear)
In this case you have one repo but two disconnected lines of development.

Philip
  ----- Original Message ----- 
  From: [email protected] 
  To: [email protected] 
  Sent: Monday, March 04, 2013 4:01 PM
  Subject: [git-users] Can I delete origin/HEAD origin/master to start new repo?


  I have a clone of a local repo that has so many significant updates that it 
really needs to be a major release.  I'm thinking that it should be new repo, 
so I want to disconnect it from the old repo.  What is the best way to handle 
this?  Should I (can I) delete the origin/HEAD origin/master?  What about the 
clone pointer in the original repo? 

  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to [email protected].
  For more options, visit https://groups.google.com/groups/opt_out.
   
   

  No virus found in this message.
  Checked by AVG - www.avg.com
  Version: 2013.0.2899 / Virus Database: 2641/6144 - Release Date: 03/03/13

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to