On Sun, 30 Jan 2011 17:19:28 -0800 (PST)
harlan <har...@bloomenterprises.org> wrote:

> I'm trying to split out a directory, and subdirectories, into a
> separate repository.  I can split (copy) my local repository, but so
> far haven't been able to make anything save to it correctly.
Looks like it's a task for git-subtree [1].

> Also, my project is hosted on SourceForge.  I can split (copy) the
> repository, but I can't get anything to save to it from my local
> computer.
After splitting and verifying each resulting branch (or repository)
has sensible state and history, you supposedly had to overwrite certain
branches in the remote repository. This is done either by forced push
of the new (state of a) branch to the appropriate branch in the
remote repository (e.g. `git push --force origin master`) or by
deleting the remote branch and re-creating it (possibly at the same
time, e.g. `push origin :master my-new-local-master:master`).
In either case be sure you do understand the consequences of changing
all the history of the branches you intend to replace -- see [2] for


1. https://github.com/apenwarr/git-subtree

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to