Being a newbie (despite being 60), I may not entirely understand what you
want. But if you're saying that you've got a working directory and you want
it to not refer to the repo from which it was cloned, but a new bare repo,
then you can do this rather easily. The simplest may be something like:

#
# go to where the stuff I want in the new repo is
cd ~/existing-working-directory
#
# create a new bare repo by using ssh to login to
# the remote site. Or use some other method, such
# as will github.
ssh user@remote #start up a shell at the remote site
git init --bare --shared /the/new/git/repo/subdir/repo.git
exit # leave remote site, returning to local site
#
# push everything up to the new bare repo
git push --all ssh://user@remote/the/new/git/repo/subdir/repo.git
# everything is now in the new repo
#
# remote the old origin and point to the newly
# created one.
git remote rm origin # remove pointer to old bare repo
#
# -t master assumes that "master" is the branch we want to track
git remote add -t master ssh://user@remote/the/new/git/repo/subdir/repo.git
#


I don't know about that last thing: "the clone pointer in the original
repo". As far as I know, git does not remember or have any pointer to "who
did a clone against this repo". I.e. there is no tracking from the bare
repository to the person who may have cloned it. There is a pointer in the
cloned .git to where it came from. Which the above alters.




On Mon, Mar 4, 2013 at 10:01 AM, <banaca...@gmail.com> wrote:

> 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 git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

Maranatha! <><
John McKown

-- 
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 git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to